Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion idelib/schemata/mide_ide.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@
<UIntegerElement name="WispiApiLevel" id="0x4D71" multiple="0" minver="1">WiSpi API Level for network co-processor</UIntegerElement>
<StringElement name="NcpAppFwVer" id="0x4D72" multiple="0" minver="1">Network Co-Processor Application Firmware Version</StringElement>
<UIntegerElement name="KeyRev" id="0x5231" multiple="0" minver="1">Indicates the version of the key table, 0 if not present</UIntegerElement>
<MasterElement name="SerialCommandInterface" id="0x5230" multiple="0" minver="2" mandatory="0">Present in the device's DEVINFO if it supports control via serial</MasterElement>
<MasterElement name="SerialCommandInterface" id="0x5230" multiple="0" minver="2" mandatory="0">Present in the device's DEVINFO if it supports control via serial
<BinaryElement name="EscapedCharacters" id="0x5234" multiple="0" mandatory="0">Bytes to be escaped during command packet encoding (in addition to the standard HDLC break and HDLC escape characters)</BinaryElement>
</MasterElement>
<UIntegerElement name="FileCommandInterface" id="0x5233" multiple="0" minver="2" mandatory="0">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.</UIntegerElement>
</MasterElement>
<!-- SensorList and PlotList are optional; there are defaults that will be used. The use of defaults is all-or-nothing; the file should define all sensors or have no SensorList at all. -->
Expand Down
4 changes: 2 additions & 2 deletions testing/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion testing/test_matfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 0 additions & 9 deletions testing/utils.py

This file was deleted.