4949
5050CalibrationActionHandler = tuple [
5151 Any ,
52- int ,
5352 str ,
5453 Callable [[Any ], dict [str , Any ]],
5554]
5655
57- # Registry of calibration action -> handler that returns a Huey task, timeout, label, and normalizer.
56+ # Registry of calibration action -> handler that returns a Huey task, label, and normalizer.
5857calibration_actions : dict [str , Callable [[dict [str , Any ]], CalibrationActionHandler ]] = {}
5958
6059
@@ -496,7 +495,6 @@ def _register_core_calibration_actions() -> None:
496495 float (payload ["hz" ]),
497496 float (payload ["dc" ]),
498497 ),
499- 300 ,
500498 "Pump action" ,
501499 _default_normalizer ,
502500 ),
@@ -508,7 +506,6 @@ def _register_core_calibration_actions() -> None:
508506 float (payload ["rpm" ]),
509507 payload ["channel_angle_map" ],
510508 ),
511- 300 ,
512509 "OD measurement" ,
513510 _voltages_normalizer ,
514511 ),
@@ -517,7 +514,6 @@ def _register_core_calibration_actions() -> None:
517514 "od_reference_standard_read" ,
518515 lambda payload : (
519516 calibration_reference_standard_read (float (payload ["ir_led_intensity" ])),
520- 300 ,
521517 "Reference standard reading" ,
522518 _od_readings_normalizer ,
523519 ),
@@ -529,17 +525,15 @@ def _register_core_calibration_actions() -> None:
529525 float (payload ["min_dc" ]) if (payload .get ("min_dc" ) is not None ) else None ,
530526 float (payload ["max_dc" ]) if (payload .get ("max_dc" ) is not None ) else None ,
531527 ),
532- 300 ,
533528 "Stirring calibration" ,
534529 _stirring_normalizer ,
535530 ),
536531 )
537532 register_calibration_action (
538- "read_voltage " ,
533+ "read_aux_voltage " ,
539534 lambda payload : (
540535 calibration_read_voltage (),
541- 30 ,
542- "Voltage read" ,
536+ "Aux voltage read" ,
543537 _voltage_normalizer ,
544538 ),
545539 )
@@ -550,7 +544,6 @@ def _register_core_calibration_actions() -> None:
550544 payload ["device" ],
551545 payload ["calibration" ],
552546 ),
553- 300 ,
554547 "Saving calibration" ,
555548 _default_normalizer ,
556549 ),
0 commit comments