diff --git a/cg_lims/EPPs/files/smrt_link/models.py b/cg_lims/EPPs/files/smrt_link/models.py index 05b3ff76..91e2c4ff 100644 --- a/cg_lims/EPPs/files/smrt_link/models.py +++ b/cg_lims/EPPs/files/smrt_link/models.py @@ -188,15 +188,15 @@ def _build_plate_dict(process: Process) -> Dict[int, Container]: containers = process.output_containers() plate_1 = process.udf.get("Plate 1") plate_2 = process.udf.get("Plate 2") - dict = {1: "", 2: ""} + plate_dict = {1: "", 2: ""} for container in containers: if container.name == plate_1: - dict[1] = container.name + plate_dict[1] = container.name elif plate_2 and container.name == plate_2: - dict[2] = container.name + plate_dict[2] = container.name else: raise MissingUDFsError(f"Error: Container {container.name} is missing from run set up.") - return dict + return plate_dict def _convert_well(well: str) -> str: @@ -247,13 +247,13 @@ def __init__(self, process: Process): self.pools = get_artifacts(process=process) self.run_name = process.udf.get("Run Name") self.instrument_type = process.udf.get("Instrument Type") + self.plate_1_type = process.udf.get("Plate 1 Type") + self.plate_2_type = process.udf.get("Plate 2 Type") self.run_comments = f"Generated by automation in https://cg-lims-stage.sys.scilifelab.se/clarity/work-details/{process.id.split('-')[1]}" self.movie_acquisition_time = process.udf.get("Movie Acquisition Time (hours)") self.adaptive_loading = process.udf.get("Adaptive Loading") self.base_kinetics = process.udf.get("Include Base Kinetics") self.consensus_mode = process.udf.get("Consensus Mode") - self.plate_1_type = process.udf.get("Plate 1 Type") - self.plate_2_type = process.udf.get("Plate 2 Type") def _create_run_settings(self) -> str: """Return the [Run Settings] section of the run design."""