Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/meshio/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
reader_map = {}
_writer_map = {}

# NumPy 2.x changed the representaion of scalars.
# This reverts to the old behavior.
# https://numpy.org/doc/2.2/release/2.0.0-notes.html#representation-of-numpy-scalars-changed
if np.lib.NumpyVersion(np.__version__) >= '2.0.0':
np.set_printoptions(legacy="1.25")

def register_format(
format_name: str, extensions: list[str], reader, writer_map
Expand Down