nipype
nipype copied to clipboard
NameError: name 'Exceptions' is not defined
trafficstars
Summary
Script raises "Exceptions", which is not defined
Actual behavior
NameError: name 'Exceptions' is not defined
Expected behavior
should raise "Exception"
How to replicate the behavior
invert wrong affine for WarpImageMultiTransform nipype version 1.6.1
Script/Workflow details
Platform details:
Execution environment
- My python environment outside container
Looks like it was introduced in https://github.com/nipy/nipype/pull/2229. Would you care to submit a PR? I think we should probably use ValueError for these exceptions.
https://github.com/nipy/nipype/blob/6c060304f380c46b2f05c5afdc7171dbbdfadc58/nipype/interfaces/ants/resampling.py#L126-L130
https://github.com/nipy/nipype/blob/6c060304f380c46b2f05c5afdc7171dbbdfadc58/nipype/interfaces/ants/resampling.py#L285-L289
Will do!