Fix loading of v2 spexical files

This commit is contained in:
frederic committed 2026-10-05 17:16:45 +02:00
1 parent 2ae821883c
commit 8b56316da9
1 file changed
+4 -1
+4 -1
View File
@@ -66,7 +66,10 @@ class SpeXICAL:
self.fine_gain = self._load_frame(np.float32)
self.fine_offset = self._load_frame(np.float32)
self.pixel_mask = self._load_frame(np.uint16)
if self.format_version < 3:
self.pixel_mask = self._load_frame(np.uint8)
else:
self.pixel_mask = self._load_frame(np.uint16)
self.comment = self._file.read(self.file_size - self._min_size)