Skip to content

Commit 625ca1f

Browse files
When adding frame counts, missed model change and string to int conversion (#501)
1 parent 5c94171 commit 625ca1f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/murfey/client/contexts/tomo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,8 @@ def gather_metadata(
638638
metadata_file.parent / data_file
639639
)
640640
mdoc_metadata["frame_count"] = int(
641-
mdoc_metadata["eer_fractionation"] / mdoc_metadata["num_eer_frames"]
641+
int(mdoc_metadata["eer_fractionation"])
642+
/ int(mdoc_metadata["num_eer_frames"])
642643
)
643644
except Exception as e:
644645
logger.error(f"Exception encountered in metadata gathering: {str(e)}")

src/murfey/util/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ class ProcessFile(BaseModel): # Rename to TomoProcessFile
315315
image_number: int
316316
pixel_size: float
317317
dose_per_frame: float
318+
frame_count: int
318319
mc_uuid: Optional[int] = None
319320
voltage: float = 300
320321
mc_binning: int = 1

0 commit comments

Comments
 (0)