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)
Update the scan run table with safe and good values for the width and height 2024-05-04 I upped the LITTLE_BIT_MORE from 1000 to 2500 as the cropping may have been too aggressive :param id: integer primary key of scan run table