From c7f08fa55090ab28385fa26dd0b02055241138ff Mon Sep 17 00:00:00 2001 From: stokesMIDE Date: Tue, 27 Jan 2026 15:23:03 -0500 Subject: [PATCH 1/2] Schema change: added `` to `` --- idelib/schemata/mide_ide.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/idelib/schemata/mide_ide.xml b/idelib/schemata/mide_ide.xml index 4f420d4..42d7ce4 100644 --- a/idelib/schemata/mide_ide.xml +++ b/idelib/schemata/mide_ide.xml @@ -97,7 +97,9 @@ WiSpi API Level for network co-processor Network Co-Processor Application Firmware Version Indicates the version of the key table, 0 if not present - Present in the device's DEVINFO if it supports control via serial + Present in the device's DEVINFO if it supports control via serial + Bytes to be escaped during command packet encoding (in addition to the standard HDLC break and HDLC escape characters) + Element in the device's DEVINFO indicating it supports control via the COMMAND and RESPONSE files. 0 is unsupported, 1 is supported; assumed to be 1 if not present. From f9400fe8ef2b2609dc5a004bda7a51c073b30df6 Mon Sep 17 00:00:00 2001 From: stokesMIDE Date: Tue, 27 Jan 2026 16:03:44 -0500 Subject: [PATCH 2/2] Fix for Numpy >2.2.1; removed workaround for Python < 3.7) --- testing/test_dataset.py | 4 ++-- testing/test_matfile.py | 2 +- testing/utils.py | 9 --------- 3 files changed, 3 insertions(+), 12 deletions(-) delete mode 100644 testing/utils.py diff --git a/testing/test_dataset.py b/testing/test_dataset.py index a2ab54b..58cbd57 100644 --- a/testing/test_dataset.py +++ b/testing/test_dataset.py @@ -34,7 +34,7 @@ from idelib import importer from idelib import parsers -from testing.utils import nullcontext +from contextlib import nullcontext from .file_streams import makeStreamLike @@ -1711,7 +1711,7 @@ def testGetValueAt(self, testIDE, at, raises): expected = np.zeros([4]) expected[0] = at for i in range(1, 4): - expected[i] = np.interp([at], vals[0], vals[i]) + expected[i] = np.interp([at], vals[0], vals[i])[0] else: expected = None diff --git a/testing/test_matfile.py b/testing/test_matfile.py index d455e47..62ba3d3 100644 --- a/testing/test_matfile.py +++ b/testing/test_matfile.py @@ -32,7 +32,7 @@ from idelib import parsers from idelib import matfile -from testing.utils import nullcontext +from contextlib import nullcontext from .file_streams import makeStreamLike diff --git a/testing/utils.py b/testing/utils.py deleted file mode 100644 index 4297468..0000000 --- a/testing/utils.py +++ /dev/null @@ -1,9 +0,0 @@ -class nullcontext: - """ A replacement for `contextlib.nullcontext` for python versions before 3.7 - """ - - def __enter__(self): - pass - - def __exit__(self, exc_type, exc_val, exc_tb): - pass