From 0bc5a5022be1b9f779b523ca4c3a02e366d345bf Mon Sep 17 00:00:00 2001 From: PaulJonasJost Date: Mon, 16 Mar 2026 10:30:15 +0100 Subject: [PATCH] pandas before 3.0.0, fixed separator --- pyproject.toml | 2 +- src/petab_gui/utils.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ca5df03..1b24b42 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ maintainers = [ description = "Graphical user interface for the PEtab format" dependencies = [ "pyside6", - "pandas", + "pandas<3.0.0", "antimony", "python-libsbml", "matplotlib", diff --git a/src/petab_gui/utils.py b/src/petab_gui/utils.py index 24bb48e..74dcf81 100644 --- a/src/petab_gui/utils.py +++ b/src/petab_gui/utils.py @@ -408,6 +408,9 @@ def process_file(filepath, logger): ) return None, None + # if separator is None: + # separator = "\t" + # Case 3.2: Identify the table type based on header content if {petab.C.OBSERVABLE_ID, petab.C.MEASUREMENT, petab.C.TIME}.issubset( header @@ -427,7 +430,7 @@ def process_file(filepath, logger): petab.C.CONDITION_ID in header or f"\ufeff{petab.C.CONDITION_ID}" in header ): - return "condition", separator + return "condition", separator if separator is not None else "\t" if petab.C.PLOT_ID in header: return "visualization", separator logger.log_message(