Skip to content

Commit

Permalink
Raised the tolerance for concentration validation so it does not get …
Browse files Browse the repository at this point in the history
…triggered by rounding errors.
  • Loading branch information
UlysseFG committed Oct 1, 2024
1 parent 7dd519f commit 98299ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/fms_core/services/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ def remove_sample_metadata(sample, metadata):
return deleted, errors, warnings


def validate_normalization(initial_volume, initial_concentration, final_volume, desired_concentration, tolerance=0.01):
def validate_normalization(initial_volume, initial_concentration, final_volume, desired_concentration, tolerance=0.1):
"""
Defines whether a desired concentration is valid given the ratio (initial volume / final volume)
Expand Down

0 comments on commit 98299ee

Please sign in to comment.