From 98299eef5f6cb916fbfd339e549c2ea4b86d61b7 Mon Sep 17 00:00:00 2001 From: UlysseFG Date: Tue, 1 Oct 2024 11:52:10 -0400 Subject: [PATCH 1/2] Raised the tolerance for concentration validation so it does not get triggered by rounding errors. --- backend/fms_core/services/sample.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/fms_core/services/sample.py b/backend/fms_core/services/sample.py index 53a6554da..b105ea64c 100644 --- a/backend/fms_core/services/sample.py +++ b/backend/fms_core/services/sample.py @@ -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) From 3fedc89ba9b37fed86d4bef7c6974a7bc59d132f Mon Sep 17 00:00:00 2001 From: UlysseFG Date: Tue, 1 Oct 2024 11:59:12 -0400 Subject: [PATCH 2/2] Version bump --- backend/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/VERSION b/backend/VERSION index d782fca8f..4f89fb960 100644 --- a/backend/VERSION +++ b/backend/VERSION @@ -1 +1 @@ -4.11.1 +4.11.2