Skip to content

Commit a3218f7

Browse files
committed
tecan magellan unread keys
1 parent 0849e03 commit a3218f7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/allotropy/parsers/tecan_magellan/tecan_magellan_structure.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from allotropy.parsers.utils.pandas import df_to_series_data, read_csv, SeriesData
2020
from allotropy.parsers.utils.uuids import random_uuid_str
2121
from allotropy.parsers.utils.values import assert_not_none, try_float
22+
from allotropy.parsers.utils.warnings_tools import suppress_unused_keys_warning
2223

2324

2425
def get_measurement_type(measurement_mode: str) -> MeasurementType:
@@ -46,6 +47,7 @@ class MeasurementSettings:
4647
plate_identifier: str
4748
temperature: float
4849

50+
@suppress_unused_keys_warning
4951
@staticmethod
5052
def create(settings_lines: list[str], temperature: float) -> MeasurementSettings:
5153
settings = parse_settings_lines(settings_lines)
@@ -158,6 +160,11 @@ def create_metadata(data: MagellanMetadata, file_path: str) -> Metadata:
158160
def create_measurement_groups(
159161
data: SeriesData, metadata: MagellanMetadata, well_count: float
160162
) -> MeasurementGroup:
163+
164+
# The last two columns contain no data
165+
column_names = data.series.index.to_list()
166+
data.mark_read(set(column_names[-2:]))
167+
161168
measurements = []
162169

163170
for measurement_label, settings in metadata.measurements_settings.items():

0 commit comments

Comments
 (0)