-
Notifications
You must be signed in to change notification settings - Fork 8
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
NF improve converter and utils interface that can be handled #11
Conversation
update from upstream
* 'master' of https://github.com/nipype/pydra-fsl: MNT: Find namespace packages FIX: Find packages correctly Update README.md using lru_cache for all_interface adding specs dir to the python path in the converter Update tools/converter.py updating readme using all as a default option for interface_name in cli; checking name of modules and available interfaces updating readme adding cli to the converter
Still need to work on the test * fix-converter: fix yml module name input
Still need to understand how test conversion works. Need to add customised components to converter
FIX: Add help_string by default
Pydra callable only applies for output manipulation, but fslmaths requires a output file name. Nipype autogenerate a out_file name when there's no input. Not sure how to resolve this in pydra.
Allow converter to drop a given list of nipype interface parameter. Need to add test to check the dropped parameter that's not a requirement of the fsl command.
… fslmaths * 'fslmaths' of https://github.com/htwangtw/pydra-fsl: ADD converter yml field inputs_drop BK fslmaths requires out_file field FIX: Add help_string by default TEST/BK test generation unsuccessful ADD template for all FSL utils ADD test in ImageMaths spec fix yml module name input FIX converter module name BK utils yml test converter ADD first try on fslmaths interface
Possible implementation: pydra callable Need to check how to do it the pydra way and possibly implement in the converter
Logging interfaces with tests passed for now: * copygeom * extractroi * filterregressor * imagemeants * imagestats * smooth
attribute name_source in nipype can be string or list. Make sure when pass to the converter, it's a list
Remaining issues: * implement parser for argstr: a series of float ("%f %f") and %g * parser for plain text output (possibly a pydra general function; see AvScale) * expand test data type (ConvertXFM)
Quotation mark in the converter doctest generator produces error for filerregressor.py
@htwangtw - I was checking the test that is failing - you should probably use |
Thanks for looking into this! I was writing the test case according to the doc:
It might be fine to remove the |
oh, ok, so there is default |
@htwangtw - I've fix the bug in pydra: nipype/pydra#466 |
I will update my pydra version to the latest and have a look. I will have a look into the original command |
The command itself doesn't require |
FIX - * FAST doc test BREAK - * fNIRT - assertion error with output file * SUSAN - run time error; possibly fixable with more suitable test data
Note for @djarecka: Interfaces I worked on all passed the test - this PR is ready to merge if we only want to handle the Edit: SUSAN and FNIRT are failing locally now - might be related to my FSL version. |
Changes to
converter.py
:inputs_drop
allow converter dropping input specs that is not compatible with pydraname_source
grabbed from nipype1 is a listcallable
when encountering nipype1genfile
in input specRemaining issues for future PRs:
argstr
: a series of float ("%f %f"
) and%g
AvScale
)ConvertXFM
)Smooth
)ExtractROI
)To-do: