Skip to content

Commit

Permalink
Parse new concentration field
Browse files Browse the repository at this point in the history
  • Loading branch information
islean committed Dec 6, 2023
1 parent ac91c4a commit 3f48d9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cg/models/orders/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions cg/models/orders/excel_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 3f48d9d

Please sign in to comment.