-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first pass at protocol and results errors
- Loading branch information
Showing
3 changed files
with
36 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
"""Defining processes for performing estimates of free energy differences""" | ||
|
||
from.errors import ProtocolAnalysisError, ProtocolExecutionError, ProtocolValidationError, ProtocolProtocolSetupError, ProtocolUnitFailureError, MissingProtocolUnitError | ||
from .protocol import Protocol, ProtocolResult | ||
from .protocoldag import ProtocolDAG, ProtocolDAGResult, execute_DAG | ||
from .protocolunit import Context, ProtocolUnit, ProtocolUnitFailure, ProtocolUnitResult |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# This code is part of OpenFE and is licensed under the MIT license. | ||
# For details, see https://github.com/OpenFreeEnergy/gufe | ||
|
||
|
||
# Protocol Errors | ||
class ProtocolValidationError(Exception): | ||
"""Error when the protocol setup or settings can not be validated.""" | ||
|
||
class ProtocolProtocolSetupError(Exception): | ||
"""Error when executing the setup unit of the protocol.""" | ||
|
||
class ProtocolExecutionError(Exception): | ||
"""Error when executing the production unit of the protocol.""" | ||
|
||
class ProtocolAnalysisError(Exception): | ||
"""Error when trying to perform some analyses after the protocol has been executed.""" | ||
|
||
|
||
# Protocol Results Errors | ||
class MissingProtocolUnitError(Exception): | ||
"""Error when a ProtocolDAGResult is massing a protocol unit.""" | ||
|
||
class ProtocolUnitFailureError(Exception): | ||
"""Error when a ProtocolDAGResult contains an failed protocol unit.""" |
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