nipype icon indicating copy to clipboard operation
nipype copied to clipboard

NameError: name 'Exceptions' is not defined

Open 1-w opened this issue 4 years ago • 2 comments
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

1-w avatar Sep 07 '21 09:09 1-w

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

effigies avatar Sep 07 '21 15:09 effigies

Will do!

1-w avatar Sep 09 '21 08:09 1-w