Closed tashrifbillah closed 4 years ago
The reason for this issue is cli.NonexistentPath
was never created. It was not discovered so far because:
Solution self.outDir.mkdir()
here.
For some reason when the path existed I also got an error message...
Sent from my iPhone
On Apr 22, 2020, at 5:01 AM, Tashrif Billah notifications@github.com wrote:
External Email - Use Caution
The reason for this issue is cli.NonexistentPath was never created:
Solution self.outDir.mkdir() herehttps://github.com/pnlbwh/pnlNipype/blob/master/scripts/fsl_eddy.py#L83.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/pnlbwh/pnlNipype/issues/48#issuecomment-617649605, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJC74FS3JDAYRWM2MW7SLCLRN2W3PANCNFSM4MNZWHOQ.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.
Hi @sbouix , if the path existed, the program should fail right at the beginning when plumbum
module looks for a nonexistent path as a command-line argument. The error that you noticed was from there.
Given the following specification, it was our responsibility to create the directory in the script which I forgot:
outDir= cli.SwitchAttr(
['--out'],
cli.NonexistentPath,
help='output directory',
mandatory=True)
Reported by @sbouix and @kniajans