diff --git a/api/fair_ontology.py b/api/fair_ontology.py index a883c10..a98a372 100644 --- a/api/fair_ontology.py +++ b/api/fair_ontology.py @@ -31,6 +31,7 @@ QUDT_UNITS: dict[str, str | None] = { "CentiM3-PER-MIN": "VolumeFlowRate", "L-PER-MIN": "VolumeFlowRate", + "MilliL-PER-MIN": "VolumeFlowRate", "M3-PER-SEC": "VolumeFlowRate", "KiloGM-PER-SEC": "MassFlowRate", "W": "Power", @@ -108,6 +109,8 @@ "slpm": "L-PER-MIN", "L/min": "L-PER-MIN", "lpm": "L-PER-MIN", + "mL/min": "MilliL-PER-MIN", + "ml/min": "MilliL-PER-MIN", "m^3/s": "M3-PER-SEC", "m3/s": "M3-PER-SEC", "m³/s": "M3-PER-SEC", diff --git a/api/tests/test_fair_ontology.py b/api/tests/test_fair_ontology.py index 8237811..c2978c1 100644 --- a/api/tests/test_fair_ontology.py +++ b/api/tests/test_fair_ontology.py @@ -81,6 +81,11 @@ def test_registration_unit_options(self): {"qudt_unit": QUDT_UNIT_BASE + "M3-PER-SEC", "qudt_quantity_kind": QUDT_QK_BASE + "VolumeFlowRate"}, ) + self.assertEqual( + infer_qudt("mL/min"), + {"qudt_unit": QUDT_UNIT_BASE + "MilliL-PER-MIN", + "qudt_quantity_kind": QUDT_QK_BASE + "VolumeFlowRate"}, + ) def test_ambiguous_and_unknown_units_are_not_guessed(self): self.assertEqual(infer_qudt("A"), {}) diff --git a/web/app/equipment/register/page.tsx b/web/app/equipment/register/page.tsx index b22fbd0..c797a52 100644 --- a/web/app/equipment/register/page.tsx +++ b/web/app/equipment/register/page.tsx @@ -45,6 +45,7 @@ const UNIT_OPTIONS = [ { value: "Pa", label: "Pa" }, { value: "sccm", label: "sccm" }, { value: "SLPM", label: "SLPM" }, + { value: "mL/min", label: "mL/min" }, { value: "g", label: "g" }, { value: "kg/s", label: "kg/s" }, { value: "m^3/s", label: "m^3/s" },