From 5fa3e471c84baac893b6de9484af2d79c674c76c Mon Sep 17 00:00:00 2001 From: Joshua Hernandez Date: Sat, 29 Nov 2025 19:23:27 -0500 Subject: [PATCH] remove debug code --- .../cytiva_biacore_t200_control_parser.py | 22 +------------------ 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/allotropy/parsers/cytiva_biacore_t200_control/cytiva_biacore_t200_control_parser.py b/src/allotropy/parsers/cytiva_biacore_t200_control/cytiva_biacore_t200_control_parser.py index 7cd31a632..b05dc8ec0 100644 --- a/src/allotropy/parsers/cytiva_biacore_t200_control/cytiva_biacore_t200_control_parser.py +++ b/src/allotropy/parsers/cytiva_biacore_t200_control/cytiva_biacore_t200_control_parser.py @@ -1,7 +1,3 @@ -import json -from pathlib import Path, PureWindowsPath -import warnings - from allotropy.allotrope.models.adm.binding_affinity_analyzer.wd._2024._12.binding_affinity_analyzer import ( Model, ) @@ -36,24 +32,8 @@ class CytivaBiacoreT200ControlParser(VendorParser[MapperData, Model]): def create_data(self, named_file_contents: NamedFileContents) -> MapperData: base_data = DictData(decode_data(named_file_contents)) data = Data.create(base_data) - mapper_data = MapperData( + return MapperData( metadata=create_metadata(data, named_file_contents), measurement_groups=create_measurement_groups(data), calculated_data=create_calculated_data(data), ) - try: - unread = base_data.get_unread_deep() - original_path = named_file_contents.original_file_path - # Derive file stem robustly for both POSIX and Windows-style paths - stem = ( - PureWindowsPath(original_path).stem - if "\\" in original_path and "/" not in original_path - else Path(original_path).stem - ) - out_name = f"{stem}data_unread_2.json" - with open(out_name, "w", encoding="utf-8") as f: - json.dump(unread, f, ensure_ascii=False, indent=2) - except Exception as e: - # Best-effort debug artifact; do not break parsing on failure - warnings.warn(f"Failed to write unread debug file: {e!s}", stacklevel=1) - return mapper_data