Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST: Use existing file to test BET shell task #281

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pydra/engine/tests/test_shelltask.py
Original file line number Diff line number Diff line change
Expand Up @@ -2267,12 +2267,14 @@ def change_name(file):
)

# TODO: not sure why this has to be string
in_file = Path(os.path.dirname(os.path.abspath(__file__))) / "data" / "foo.nii"
in_file = (
Path(os.path.dirname(os.path.abspath(__file__))) / "data_tests" / "test.nii.gz"
)
djarecka marked this conversation as resolved.
Show resolved Hide resolved

# separate command into exec + args
shelly = ShellCommandTask(
name="bet_task", executable="bet", in_file=in_file, input_spec=bet_input_spec
)
assert shelly.inputs.executable == "bet"
assert shelly.cmdline == f"bet {in_file} {in_file}_brain"
# res = shelly(plugin="cf")
res = shelly(plugin="cf")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we don't really want to run bet in pydra, should we just remove the actual execution?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we actually don't run this test... see the decorator