* add support for datatype 11 = 2-byte-word digital

* usage.py: raise proper exception
* usage_adv.py: use different example file
This commit is contained in:
2021-04-27 11:38:43 +02:00
parent 8708d2d008
commit 2b2e69f0e5
4 changed files with 39 additions and 14 deletions

View File

@@ -6,7 +6,7 @@ import json
try :
imcraw = imc_termite.imctermite(b"samples/sampleA.raw")
except RuntimeError as e :
print("failed to load/parse raw-file: " + str(e))
raise Exception("failed to load/parse raw-file: " + str(e))
# obtain list of channels as list of dictionaries (without data)
channels = imcraw.get_channels(False)

View File

@@ -8,7 +8,7 @@ from pathlib import Path
# list files in sample directory
# fileobj1 = Path("samples/").rglob("*.raw")
# rawlist1 = [str(fl) for fl in fileobj1]
rawlist1 = ["samples/datasetB/datasetB_32.raw"]
rawlist1 = ["samples/datasetB/datasetB_29.raw"]
print(rawlist1)
for fl in rawlist1: