diff --git a/CHANGELOG b/CHANGELOG index f502adb..1d28380 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +0.5.3 + - setup: bump numpy to 1.25.1 + - tests: workaround for broken numpy repr 0.5.2 - docs: cleanup readme 0.5.1 diff --git a/pyproject.toml b/pyproject.toml index b902b24..d2b7bb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ classifiers = [ ] license = {text = "GNU Lesser General Public License v3 or later (LGPLv3+)"} dependencies = [ - "numpy", + "numpy>=1.25.1", ] dynamic = ["version"] diff --git a/tests/helper.py b/tests/helper.py index f0101c4..3217696 100644 --- a/tests/helper.py +++ b/tests/helper.py @@ -3,14 +3,18 @@ from igor2.binarywave import load as loadibw - data_dir = pathlib.Path(__file__).parent / "data" def assert_equal_dump_no_whitespace_no_byte(data_a, data_b): - a = data_a.replace(" ", "").replace("b'", "'").replace("\n", "") - b = data_b.replace(" ", "").replace("b'", "'").replace("\n", "") - assert a == b + def repl(x): + return x.replace( + " ", "").replace( + "b'", "'").replace( + "\n", "").replace( + "float32", "'>f4'") + + assert repl(data_a) == repl(data_b) def dumpibw(filename): @@ -26,4 +30,4 @@ def format_data(data): def walk_callback(dirpath, key, value): return 'walk callback on ({}, {}, {})'.format( - dirpath, key, '{...}' if isinstance(value, dict) else value) + dirpath, key, '{...}' if isinstance(value, dict) else value) diff --git a/tests/test_ibw.py b/tests/test_ibw.py index 9eb6ec2..9fb0410 100644 --- a/tests/test_ibw.py +++ b/tests/test_ibw.py @@ -11,7 +11,7 @@ def test_ibw01(): 'wfmSize': 166}, 'note': '', 'padding': array([], dtype=float64), - 'wData': array([ 5., 4., 3., 2., 1.]), + 'wData': array([ 5., 4., 3., 2., 1.], dtype=float32), 'wave_header': {'aModified': 0, 'bname': 'double', 'botFullScale': 0.0,