Loading openflexure_microscope/camera/capture.py +8 −4 Original line number Diff line number Diff line Loading @@ -98,8 +98,12 @@ def capture_from_exif(path, exif_dict): capture.timestring = exif_dict["time"] capture.format = exif_dict["format"] capture.custom_metadata = exif_dict["custom"] capture.system_metadata = exif_dict["system"] capture.custom_metadata = ( exif_dict["custom"] if "custom" in exif_dict.keys() else {} ) capture.system_metadata = ( exif_dict["system"] if "system" in exif_dict.keys() else {} ) capture.tags = exif_dict["tags"] return capture Loading Loading @@ -245,7 +249,7 @@ class CaptureObject(object): "format": self.format, "tags": self.tags, "custom": self.custom_metadata, "system": self.system_metadata "system": self.system_metadata, } # Add custom metadata to dictionary Loading Loading
openflexure_microscope/camera/capture.py +8 −4 Original line number Diff line number Diff line Loading @@ -98,8 +98,12 @@ def capture_from_exif(path, exif_dict): capture.timestring = exif_dict["time"] capture.format = exif_dict["format"] capture.custom_metadata = exif_dict["custom"] capture.system_metadata = exif_dict["system"] capture.custom_metadata = ( exif_dict["custom"] if "custom" in exif_dict.keys() else {} ) capture.system_metadata = ( exif_dict["system"] if "system" in exif_dict.keys() else {} ) capture.tags = exif_dict["tags"] return capture Loading Loading @@ -245,7 +249,7 @@ class CaptureObject(object): "format": self.format, "tags": self.tags, "custom": self.custom_metadata, "system": self.system_metadata "system": self.system_metadata, } # Add custom metadata to dictionary Loading