Skip to content

Commit f09f8f7

Browse files
chore: Cytiva Biacore T200 Control - remove debug files (#1127)
1 parent 4aa8836 commit f09f8f7

1 file changed

Lines changed: 1 addition & 21 deletions

File tree

src/allotropy/parsers/cytiva_biacore_t200_control/cytiva_biacore_t200_control_parser.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import json
2-
from pathlib import Path, PureWindowsPath
3-
import warnings
4-
51
from allotropy.allotrope.models.adm.binding_affinity_analyzer.wd._2024._12.binding_affinity_analyzer import (
62
Model,
73
)
@@ -36,24 +32,8 @@ class CytivaBiacoreT200ControlParser(VendorParser[MapperData, Model]):
3632
def create_data(self, named_file_contents: NamedFileContents) -> MapperData:
3733
base_data = DictData(decode_data(named_file_contents))
3834
data = Data.create(base_data)
39-
mapper_data = MapperData(
35+
return MapperData(
4036
metadata=create_metadata(data, named_file_contents),
4137
measurement_groups=create_measurement_groups(data),
4238
calculated_data=create_calculated_data(data),
4339
)
44-
try:
45-
unread = base_data.get_unread_deep()
46-
original_path = named_file_contents.original_file_path
47-
# Derive file stem robustly for both POSIX and Windows-style paths
48-
stem = (
49-
PureWindowsPath(original_path).stem
50-
if "\\" in original_path and "/" not in original_path
51-
else Path(original_path).stem
52-
)
53-
out_name = f"{stem}data_unread_2.json"
54-
with open(out_name, "w", encoding="utf-8") as f:
55-
json.dump(unread, f, ensure_ascii=False, indent=2)
56-
except Exception as e:
57-
# Best-effort debug artifact; do not break parsing on failure
58-
warnings.warn(f"Failed to write unread debug file: {e!s}", stacklevel=1)
59-
return mapper_data

0 commit comments

Comments
 (0)