Scan run controller
- class library.controller.scan_run_controller.ScanRunController(session)
Bases:
object
Controller for the scan_run table
- get_channels(FK_prep_id)
Update the scan run table with safe and good values for the width and height
- Parameters:
id – integer primary key of scan run table
- get_scan_run(animal)
Check to see if there is a row for this animal in the scan run table
- Parameters:
animal – the animal (AKA primary key)
- Return scan run object:
one object (row)
- update_scan_run(id, update_dict)
Update the scan run with the given ID using the provided update dictionary.
- Args:
id (int): The ID of the scan run to update. update_dict (dict): A dictionary containing the fields to update and their new values.
- Returns:
None
- update_width_height(id, width, height, scaling_factor=32.0)