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 May 9, 2023
1 parent 6cf7e69 commit 2030f18
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
4 changes: 1 addition & 3 deletions pydra/tasks/fsl/utils/split.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ def Split_output(inputs):
},
),
]
Split_input_spec = specs.SpecInfo(
name="Input", fields=input_fields, bases=(specs.ShellSpec,)
)
Split_input_spec = specs.SpecInfo(name="Input", fields=input_fields, bases=(specs.ShellSpec,))

output_fields = [
(
Expand Down
8 changes: 2 additions & 6 deletions pydra/tasks/fsl/utils/tests/test_run_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
from ..split import Split


@pytest.mark.xfail(
"FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError
)
@pytest.mark.xfail("FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError)
@pytest.mark.parametrize(
"inputs, outputs",
[
Expand Down Expand Up @@ -45,9 +43,7 @@ def test_Split(test_data, inputs, outputs):
except:
pass
task = Split(**inputs)
assert set(task.generated_output_names) == set(
["return_code", "stdout", "stderr"] + outputs
)
assert set(task.generated_output_names) == set(["return_code", "stdout", "stderr"] + outputs)
res = task()
print("RESULT: ", res)
for out_nm in outputs:
Expand Down
4 changes: 1 addition & 3 deletions pydra/tasks/fsl/utils/tests/test_spec_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,4 @@ def test_Split(test_data, inputs, outputs):
except:
pass
task = Split(**inputs)
assert set(task.generated_output_names) == set(
["return_code", "stdout", "stderr"] + outputs
)
assert set(task.generated_output_names) == set(["return_code", "stdout", "stderr"] + outputs)
1 change: 1 addition & 0 deletions specs/callables.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ def MELODIC_output(field, inputs):

# return sorted(glob(fname_template))


def Split_output(inputs):
import os, glob

Expand Down

0 comments on commit 2030f18

Please sign in to comment.