fix for MicroManager MetaData
@@ -269,7 +269,7 @@ class TiffMap:
mm_info = _json.loads(readout.decode())
info['Micro-Manager Metadata'] = mm_info
info['Camera'] = mm_info['Camera']
-
+ try:
self.file.seek(self.last_ifd_offset)
content = self.file.read()
search=r"\{\"Summary\":\"(.*)\"\}"
@@ -283,6 +283,10 @@ class TiffMap:
info['Micro-Manager Acquisiton Comments'] = comments
+ except Exception as e:
+ print(e)
+ print('Error reading Micro-Manager metadata.')
+
return info
def get_frame(self, index, array=None):
