Skip to content

Commit 1ff6068

Browse files
Fixing Errors in ImageData utility class that made readout of a qmini point spectrum not possible (#88)
* fixing broken qmini readout * update cube_utils documentation + unit tests * update version to ship hotfix * fix: guard of spectrum accessor
1 parent b33c313 commit 1ff6068

5 files changed

Lines changed: 623 additions & 80 deletions

File tree

‎cuvis/Measurement.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ def refresh(self) -> None:
125125
key, info)
126126
self.data.update({key: SensorInfo._from_internal(info)})
127127
else:
128-
self.data.update({key: "Not Implemented!"})
128+
# The C API reports entries it cannot hand out with an empty key,
129+
# so they need a distinct one here or they overwrite each other.
130+
self.data.update(
131+
{key or "unsupported_data_{}_{}".format(cdtype, ind):
132+
"Not Implemented!"})
129133

130134
def save(self, saveargs: SaveArgs) -> None:
131135
ge, sa = saveargs._get_internal()

0 commit comments

Comments
 (0)