diff --git a/src/murfey/client/contexts/tomo.py b/src/murfey/client/contexts/tomo.py index 7d3722d0f..331b9a728 100644 --- a/src/murfey/client/contexts/tomo.py +++ b/src/murfey/client/contexts/tomo.py @@ -638,7 +638,8 @@ def gather_metadata( metadata_file.parent / data_file ) mdoc_metadata["frame_count"] = int( - mdoc_metadata["eer_fractionation"] / mdoc_metadata["num_eer_frames"] + int(mdoc_metadata["eer_fractionation"]) + / int(mdoc_metadata["num_eer_frames"]) ) except Exception as e: logger.error(f"Exception encountered in metadata gathering: {str(e)}") diff --git a/src/murfey/util/models.py b/src/murfey/util/models.py index 82e5ce708..33b919302 100644 --- a/src/murfey/util/models.py +++ b/src/murfey/util/models.py @@ -315,6 +315,7 @@ class ProcessFile(BaseModel): # Rename to TomoProcessFile image_number: int pixel_size: float dose_per_frame: float + frame_count: int mc_uuid: Optional[int] = None voltage: float = 300 mc_binning: int = 1