Fix loading of per-cluster size constants from v2 spexical files
This commit is contained in:
1 parent
8b56316da9
commit
2713ff1a6c
1 file changed
+1
-1
@@ -53,7 +53,7 @@ class SpeXICAL:
|
|||||||
else:
|
else:
|
||||||
cluster_cal_struct = struct.Struct('<f')
|
cluster_cal_struct = struct.Struct('<f')
|
||||||
for i in range(self._cluster_cal_count):
|
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.cluster_calibrations.append(offset)
|
||||||
|
|
||||||
self.dark_offset = self._load_frame(np.float32)
|
self.dark_offset = self._load_frame(np.float32)
|
||||||
|
|||||||
Reference in new issue
Block a user