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

Conversation

djarecka
Copy link
Collaborator

@djarecka djarecka commented Jun 16, 2020

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Summary

Checklist

  • All tests passing
  • I have added tests to cover my changes
  • I have updated documentation (if necessary)
  • My code follows the code style of this project
    (we are using black: you can pip install pre-commit,
    run pre-commit install in the pydra directory
    and black will be run automatically with each commit)

Acknowledgment

  • I acknowledge that this contribution will be available under the Apache 2 license.

@codecov
Copy link

codecov bot commented Jun 16, 2020

Codecov Report

Merging #281 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #281      +/-   ##
==========================================
- Coverage   86.78%   86.77%   -0.01%     
==========================================
  Files          19       20       +1     
  Lines        3156     3169      +13     
  Branches      837      841       +4     
==========================================
+ Hits         2739     2750      +11     
- Misses        260      261       +1     
- Partials      157      158       +1     
Flag Coverage Δ
#unittests 86.77% <ø> (-0.01%) ⬇️
Impacted Files Coverage Δ
pydra/engine/core.py 89.74% <0.00%> (-0.22%) ⬇️
pydra/tasks/__init__.py 50.00% <0.00%> (ø)
pydra/engine/task.py 81.64% <0.00%> (+0.78%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 63d2bd6...4967853. Read the comment docs.

@effigies effigies changed the title small fix to the bet exampel TEST: Use existing file to test BET shell task Jun 17, 2020

# 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

@effigies effigies closed this Jun 17, 2020
@effigies effigies reopened this Jun 17, 2020
@effigies
Copy link
Contributor

Closed and reopened to trigger RTD build. Looks like it's working.

@effigies
Copy link
Contributor

Probably superseded by #425?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants