InsightSoftwareConsortium / itkwidgets

An elegant Python interface for visualization on the web platform to interactively generate insights into multidimensional images, point sets, and geometry.
https://itkwidgets.readthedocs.io/
Apache License 2.0
587 stars 83 forks source link

itk.image() to itk.output() in _type_aliases.py #742

Open GingerSpacetail opened 7 months ago

GingerSpacetail commented 7 months ago

I'm not sure yet, as the whole itk module is currently not working for me... But meanwhile you might want to check if this line should be updated to match the fact that itk.image() is deprecated, and we should use itk.output() instead

https://github.com/InsightSoftwareConsortium/ITK/blob/2a1265d75f96ff7a072791629ff23b8c42123b3d/Wrapping/Generators/Python/itk/support/extras.py#L137

thewtex commented 7 months ago

Hi, thanks for the patch!

thewtex commented 7 months ago

What issue are you seeing?

Note that itk.Image identifies a type, itk.image is a function to return the image instance that is either an itk.Image instance directly or the instance that would be produced by an itk filter.