File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,9 @@ def register_processing_parameters(
329329 controllers [session_id ].data_collection_parameters .update (
330330 data_collection_parameters [proc_param_block .label ]
331331 )
332+ for k , v in proc_param_block .params .dict ().items ():
333+ if v is not None and hasattr (controllers [session_id ]._environment , k ):
334+ setattr (controllers [session_id ]._environment , k , v )
332335 return {"success" : True }
333336
334337
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class RsyncerInfo(BaseModel):
7777
7878class ProcessingParametersSPA (BaseModel ):
7979 tag : str
80- dose_per_frame : float
80+ dose_per_frame : Optional [ float ]
8181 gain_ref : Optional [str ]
8282 experiment_type : str
8383 voltage : float
You can’t perform that action at this time.
0 commit comments