Skip to content

Commit

Permalink
update warnings threshold for volume-buffer epp
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl-Svard committed Sep 27, 2024
1 parent 61875d9 commit 5e764bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cg_lims/EPPs/udf/calculate/calculate_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def calculate_volumes(
sample_volume=sample_volume, sample_volume_limit=sample_volume_limit
)
total_volume = buffer_volume + sample_volume
if total_volume > 100:
if total_volume > sample_volume_limit:
high_volume_warning = True
artifact.udf[buffer_udf] = buffer_volume
artifact.udf[total_volume_udf] = total_volume
Expand All @@ -50,7 +50,7 @@ def calculate_volumes(
f'Udf "Sample Volume (ul)" missing for {missing_udfs} out of {len(artifacts)} samples '
)
if high_volume_warning:
warning_message += "Total volume higher than 100 ul for some samples!"
warning_message += f"Total volume higher than {sample_volume_limit} ul for some samples!"
if warning_message:
raise MissingUDFsError(message=warning_message)

Expand Down

0 comments on commit 5e764bf

Please sign in to comment.