Skip to content

Commit

Permalink
delete error msg in file_to_udf (#474)
Browse files Browse the repository at this point in the history
### Changed

Changed script to not give an error message that some samples could not be found in the file
  • Loading branch information
idalindegaard authored Feb 21, 2024
1 parent 842147a commit 40c3c7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cg_lims/EPPs/files/file_to_udf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 40c3c7f

Please sign in to comment.