Skip to content

Fix Warnings in Python >= 3.14: Explicitly set _layout_ to 'ms' in ctypes structs#97

Merged
kspaceKelvin merged 1 commit into
ismrmrd:masterfrom
lobroc:master
Jul 10, 2026
Merged

Fix Warnings in Python >= 3.14: Explicitly set _layout_ to 'ms' in ctypes structs#97
kspaceKelvin merged 1 commit into
ismrmrd:masterfrom
lobroc:master

Conversation

@lobroc

@lobroc lobroc commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Since Python 3.14, one should explicitly set layout to 'ms' in any ctypes Structure objects defining pack. Defaulting to 'ms' was implicit behaviour before, but now raises a warning.
This simple patch defines layout for all objects giving warnings on import.

Closes #96

@kspaceKelvin kspaceKelvin merged commit aa290c6 into ismrmrd:master Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecation warnings on module import

2 participants