Skip to content

Commit a251b96

Browse files
feat: Update Roche BioHT Adapter for v7.0 support (#1132)
1 parent e1bec1c commit a251b96

4 files changed

Lines changed: 864 additions & 4 deletions

File tree

src/allotropy/parsers/roche_cedex_bioht/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"analyst",
4343
]
4444

45-
DATA_HEADER_V6 = [
45+
DATA_HEADER_V6_V7 = [
4646
"row type",
4747
"measurement time",
4848
"sample identifier",

src/allotropy/parsers/roche_cedex_bioht/roche_cedex_bioht_reader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from allotropy.parsers.roche_cedex_bioht.constants import (
99
ANALYTES_LOOKUP,
1010
DATA_HEADER_V5,
11-
DATA_HEADER_V6,
11+
DATA_HEADER_V6_V7,
1212
DETECTION_KIT_LOOKUP,
1313
DETECTION_KIT_RANGE_LOOKUP,
1414
INFO_HEADER,
@@ -47,8 +47,8 @@ def read_samples_data(self, contents: IOType) -> pd.DataFrame:
4747
software_version = self.title_data[str, "software version"]
4848
if software_version.startswith("5"):
4949
data_header = DATA_HEADER_V5
50-
elif software_version.startswith("6"):
51-
data_header = DATA_HEADER_V6
50+
elif software_version.startswith("6") or software_version.startswith("7"):
51+
data_header = DATA_HEADER_V6_V7
5252
else:
5353
msg = f"Unsupported software version: {software_version}"
5454
raise ValueError(msg)

0 commit comments

Comments
 (0)