Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl-Svard committed Dec 3, 2024
1 parent d188430 commit 5c731ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cg_lims/EPPs/files/smrt_link/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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."""
Expand Down

0 comments on commit 5c731ae

Please sign in to comment.