Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 12, 2024
1 parent f7e0300 commit b2aa129
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions feflow/protocols/nonequilibrium_cycling.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,14 +974,20 @@ def _create(
original_mapping = setup.inputs["mapping"]

if original_state_a != stateA.key:
raise ValueError("'stateA' key is not the same as the key provided by the 'extends' ProtocolDAGResult.")
raise ValueError(
"'stateA' key is not the same as the key provided by the 'extends' ProtocolDAGResult."
)

if original_state_b != stateB.key:
raise ValueError("'stateB' key is not the same as the key provided by the 'extends' ProtocolDAGResult.")
raise ValueError(
"'stateB' key is not the same as the key provided by the 'extends' ProtocolDAGResult."
)

if mapping is not None:
if original_mapping != mapping:
raise ValueError("'mapping' is not consistent with the mapping provided by the 'extnds' ProtocolDAGResult.")
raise ValueError(
"'mapping' is not consistent with the mapping provided by the 'extnds' ProtocolDAGResult."
)
else:
mapping = original_mapping

Expand Down

0 comments on commit b2aa129

Please sign in to comment.