incf-nidash / nidmresults-fsl

A python library to export FSL's feat results to NIDM-Results
http://nidm.nidash.org/specs/nidm-results.html
MIT License
3 stars 11 forks source link

Enable non-interactive use #154

Open mih opened 5 years ago

mih commented 5 years ago

Demo from Python

>>> e=FSLtoNIDMExporter(out_dirname='/tmp/nidmfslout', zipped=False, feat_dir='sub-01/2ndlvl.gfeat/cope1.feat', groups=['control', 1])
/tmp/nidmfslout.nidm already exists, overwrite? (y/N) 

I think it would be better to test for this case in the command line argument handling in such an interactive way. For the Python API it would be better to have it raise an exception (that can be acted one), and add a force option to enable silent overwriting.

cmaumet commented 5 years ago

Thanks for this suggestion! Sounds good to me. I'll implement it.