Fix loading of per-cluster size constants from v2 spexical files

This commit is contained in:
frederic committed 2026-10-05 17:20:50 +02:00
1 parent 8b56316da9
commit 2713ff1a6c
1 file changed
+1 -1
+1 -1
View File
@@ -53,7 +53,7 @@ class SpeXICAL:
else:
cluster_cal_struct = struct.Struct('<f')
for i in range(self._cluster_cal_count):
offset = cluster_cal_struct.unpack_from(self._file.read(cluster_cal_struct.size))
offset, = cluster_cal_struct.unpack_from(self._file.read(cluster_cal_struct.size))
self.cluster_calibrations.append(offset)
self.dark_offset = self._load_frame(np.float32)