Skip to content

Commit

Permalink
Add voltage to tomography preprocessing requests
Browse files Browse the repository at this point in the history
  • Loading branch information
d-j-hatton committed Sep 12, 2023
1 parent df60028 commit 1e1a524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/murfey/server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ async def request_tomography_preprocessing(visit_name: str, proc_file: ProcessFi
"mc_uuid": proc_file.mc_uuid,
"ft_bin": proc_file.mc_binning,
"fm_dose": proc_file.dose_per_frame,
"kv": proc_file.voltage,
"gain_ref": str(machine_config.rsync_basepath / proc_file.gain_ref)
if proc_file.gain_ref
else proc_file.gain_ref,
Expand Down
1 change: 1 addition & 0 deletions src/murfey/util/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class ProcessFile(BaseModel):
autoproc_program_id: int
pixel_size: float
dose_per_frame: float
voltage: int = 300
mc_binning: int = 1
gain_ref: Optional[str] = None
eer_fractionation_file: Optional[str] = None
Expand Down

0 comments on commit 1e1a524

Please sign in to comment.