Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update Python wrapping #53

Open
dzenanz opened this issue Sep 1, 2023 · 2 comments
Open

Update Python wrapping #53

dzenanz opened this issue Sep 1, 2023 · 2 comments
Assignees

Comments

@dzenanz
Copy link
Member

dzenanz commented Sep 1, 2023

I ran into: itkOMEZarrNGFFImageIO: warning(4): ITK type not wrapped, or currently not known: itk::OMEZarrNGFFAxis

@dzenanz
Copy link
Member Author

dzenanz commented Sep 1, 2023

Tom, can you confirm/fix this?

@tbirdso
Copy link
Collaborator

tbirdso commented Sep 2, 2023

Interesting, I do not see the warning message in Python 3.8:

Python 3.8.5 (default, Sep  3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import itk
>>> itk.auto_progress(2)
>>> itk.OMEZarrNGFFImageIO.New()
Loading ITKPyBase... done
Loading ITKCommon... done
Loading ITKIOImageBase... Loading ITKIOHDF5... done
Loading IOOMEZarrNGFF... done
Loading ITKIOBMP... done
Loading ITKIOBioRad... done
Loading ITKIOBruker... done
Loading ITKIOGDCM... done
Loading ITKIOIPL... done
Loading ITKIOGE... done
Loading ITKIOGIPL... done
Loading ITKIOJPEG... done
Loading ITKIOJPEG2000... done
Loading ITKIOTIFF... done
Loading ITKIOLSM... done
Loading ITKIOMINC... done
Loading ITKIOMRC... done
Loading ITKIOMeta... done
Loading ITKStatistics... done
Loading ITKImageFilterBase... done
Loading ITKTransform... done
Loading ITKIONIFTI... done
Loading ITKIONRRD... done
Loading ITKIOPNG... done
Loading ITKIOStimulate... done
Loading ITKIOVTK... done
done
Loading ITKPyUtils... done
<itk.itkOMEZarrNGFFImageIOPython.itkOMEZarrNGFFImageIO; proxy of <Swig Object of type 'itkOMEZarrNGFFImageIO *' at 0x000001CB2CBA38A0> >

But I agree that itk.OMEZarrNGFFAxis is not yet wrapped and it would not take much effort to do so:

>>> itk.OMEZarrNGFFAxis
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\tom.birdsong\Anaconda3\envs\venv-itk\lib\site-packages\itk\support\lazy.py", line 131, in __getattribute__
    value = types.ModuleType.__getattribute__(self, attr)
AttributeError: module 'itk' has no attribute 'OMEZarrNGFFAxis'

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants