From 3f48d9dce1d4eda34454f57a46b55545200571b4 Mon Sep 17 00:00:00 2001 From: islean Date: Wed, 6 Dec 2023 14:23:59 +0100 Subject: [PATCH] Parse new concentration field --- cg/models/orders/constants.py | 1 + cg/models/orders/excel_sample.py | 1 + 2 files changed, 2 insertions(+) diff --git a/cg/models/orders/constants.py b/cg/models/orders/constants.py index 42ab938df4..aacec8e9e5 100644 --- a/cg/models/orders/constants.py +++ b/cg/models/orders/constants.py @@ -26,6 +26,7 @@ class ExcelSampleAliases(StrEnum): COLLECTION_DATE = "UDF/Collection Date" COMMENT = "UDF/Comment" CONCENTRATION = "UDF/Concentration (nM)" + CONCENTRATION_NG_UL = "UDF/Concentration (ng/ul)" CONCENTRATION_SAMPLE = "UDF/Sample Conc." CONTAINER = "Container/Type" CONTAINER_NAME = "Container/Name" diff --git a/cg/models/orders/excel_sample.py b/cg/models/orders/excel_sample.py index bdc293f4e2..7e6a2dac7c 100644 --- a/cg/models/orders/excel_sample.py +++ b/cg/models/orders/excel_sample.py @@ -29,6 +29,7 @@ class ExcelSample(OrderSample): concentration: Annotated[str, AfterValidator(numeric_value)] = Field( None, alias=ExcelSampleAliases.CONCENTRATION ) + concentration_ng_ul: Field(alias=ExcelSampleAliases.CONCENTRATION_NG_UL) concentration_sample: Annotated[str, AfterValidator(numeric_value)] = Field( None, alias=ExcelSampleAliases.CONCENTRATION_SAMPLE )