Skip to content

Deprecation warnings on module import #96

@lobroc

Description

@lobroc

Hello, I'm currently running code using ismrmrd-python version 1.15.0, on a Linux host, and am getting these warnings on module import:

<venv-location>/lib/python3.14/site-packages/ismrmrd/image.py:45: DeprecationWarning: Due to '_pack_', the 'ImageHeader' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
  class ImageHeader(FlagsMixin, EqualityMixin, ctypes.Structure):
<venv-location>/lib/python3.14/site-packages/ismrmrd/waveform.py:10: DeprecationWarning: Due to '_pack_', the 'WaveformHeader' Structure will use memory layout compatible with MSVC (Windows). If this is intended, set _layout_ to 'ms'. The implicit default is deprecated and slated to become an error in Python 3.19.
  class WaveformHeader(FlagsMixin, EqualityMixin, ctypes.Structure):

Just letting you know to avoid these messages being printed, as well as avoiding breaking changes in the future. Thanks for your development!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions