From 40c3c7faf3057041ffc5cbc3a991820d0e2141ee Mon Sep 17 00:00:00 2001 From: Ida Lindegaard <82438141+idalindegaard@users.noreply.github.com> Date: Wed, 21 Feb 2024 14:27:11 +0100 Subject: [PATCH] delete error msg in file_to_udf (#474) ### Changed Changed script to not give an error message that some samples could not be found in the file --- cg_lims/EPPs/files/file_to_udf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cg_lims/EPPs/files/file_to_udf.py b/cg_lims/EPPs/files/file_to_udf.py index 456a565f..9e44396b 100644 --- a/cg_lims/EPPs/files/file_to_udf.py +++ b/cg_lims/EPPs/files/file_to_udf.py @@ -45,10 +45,11 @@ def set_udfs(well_field: str, value_field: str, udf: str, well_dict: dict, resul well = sample.get(well_field) value = sample.get(value_field) if value is None: - error_msg.append("Some samples in the file hade missing values.") + error_msg.append("Some samples in the file had missing values.") + LOG.info(f"Missing value for sample {sample} in well {well}. Skipping!") continue elif well not in well_dict: - error_msg.append("Some samples in the step were not represented in the file.") + LOG.info(f"Well {well} was not found in the step. Skipping!") continue art = well_dict[well] try: