From 99c1641128cef7436143ce55e2b4ad9bf19654d3 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Devenyi" Date: Wed, 22 Jul 2026 12:25:31 -0400 Subject: [PATCH] Add PV360 16-bit and big-endian raw word-type branches The PV-360 rawdata numpy_dtype only resolved for ACQ_word_size=_32_BIT with BYTORDA=little. ParaVision's ACQ_word_size also allows _16_BIT (D02 PvParams), and BYTORDA may be big; those combinations previously matched no branch and failed with MissingProperty. Add the int16 and big-endian variants next to the existing int32/little entry, keeping the same ACQ_sw_version gate. Co-Authored-By: Claude Fable 5 --- brukerapi/config/properties_rawdata_core.json | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/brukerapi/config/properties_rawdata_core.json b/brukerapi/config/properties_rawdata_core.json index 36199ba..995161e 100644 --- a/brukerapi/config/properties_rawdata_core.json +++ b/brukerapi/config/properties_rawdata_core.json @@ -55,6 +55,30 @@ "#BYTORDA=='little'", ["#ACQ_sw_version",["","","","","","","","",""]] ] + }, + { + "cmd": "np.dtype('i4').newbyteorder('>')", + "conditions": [ + "#ACQ_word_size=='_32_BIT'", + "#BYTORDA=='big'", + ["#ACQ_sw_version",["","","","","","","","",""]] + ] + }, + { + "cmd": "np.dtype('i2').newbyteorder('<')", + "conditions": [ + "#ACQ_word_size=='_16_BIT'", + "#BYTORDA=='little'", + ["#ACQ_sw_version",["","","","","","","","",""]] + ] + }, + { + "cmd": "np.dtype('i2').newbyteorder('>')", + "conditions": [ + "#ACQ_word_size=='_16_BIT'", + "#BYTORDA=='big'", + ["#ACQ_sw_version",["","","","","","","","",""]] + ] } ], "job_desc": [