-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from pepkit/dev
Release 0.12.4
- Loading branch information
Showing
35 changed files
with
1,201 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.12.3" | ||
__version__ = "0.12.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
""" Exceptions for specific looper issues. """ | ||
|
||
from abc import ABCMeta | ||
import sys | ||
if sys.version_info < (3, 3): | ||
from collections import Iterable | ||
else: | ||
from collections.abc import Iterable | ||
from collections import Iterable | ||
|
||
__author__ = "Vince Reuter" | ||
__email__ = "[email protected]" | ||
|
||
_all__ = ["DuplicatePipelineKeyException", | ||
"InvalidResourceSpecificationException", | ||
"JobSubmissionException", "LooperError", | ||
"JobSubmissionException", | ||
"LooperError", | ||
"MissingPipelineConfigurationException", | ||
"PipelineInterfaceConfigError"] | ||
"PipelineInterfaceConfigError", | ||
"PipelineInterfaceRequirementsError"] | ||
|
||
|
||
class LooperError(Exception): | ||
|
@@ -40,7 +38,7 @@ class JobSubmissionException(LooperError): | |
def __init__(self, sub_cmd, script): | ||
self.script = script | ||
reason = "Error for command {} and script '{}'".\ | ||
format(sub_cmd, self.script) | ||
format(sub_cmd, self.script) | ||
super(JobSubmissionException, self).__init__(reason) | ||
|
||
|
||
|
@@ -61,3 +59,12 @@ def __init__(self, context): | |
if not isinstance(context, str) and isinstance(context, Iterable): | ||
context = "Missing section(s): {}".format(", ".join(context)) | ||
super(PipelineInterfaceConfigError, self).__init__(context) | ||
|
||
|
||
class PipelineInterfaceRequirementsError(LooperError): | ||
""" Invalid specification of pipeline requirements in interface config. """ | ||
def __init__(self, typename_by_requirement): | ||
super(PipelineInterfaceRequirementsError, self).__init__( | ||
"{} invalid requirements: {}".format( | ||
len(typename_by_requirement), typename_by_requirement)) | ||
self.error_specs = typename_by_requirement |
Oops, something went wrong.