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 Sep 22, 2023
1 parent 8f160a0 commit 7a70c18
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pydra/engine/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,12 +909,14 @@ def __init__(self, subtype, **kwargs):
raise

Check warning on line 909 in pydra/engine/workers.py

View check run for this annotation

Codecov / codecov/patch

pydra/engine/workers.py#L907-L909

Added lines #L907 - L909 were not covered by tests
logger.debug("Initialize PsijWorker")
self.psij = psij

# Check if the provided subtype is valid
valid_subtypes = ["local", "slurm"]
if subtype not in valid_subtypes:
raise ValueError(f"Invalid 'subtype' provided. Available options: {', '.join(valid_subtypes)}")

raise ValueError(

Check warning on line 916 in pydra/engine/workers.py

View check run for this annotation

Codecov / codecov/patch

pydra/engine/workers.py#L916

Added line #L916 was not covered by tests
f"Invalid 'subtype' provided. Available options: {', '.join(valid_subtypes)}"
)

self.subtype = subtype

def run_el(self, interface, rerun=False, **kwargs):
Expand Down

0 comments on commit 7a70c18

Please sign in to comment.