Skip to content

Commit e61aa11

Browse files
pandas before 3.0.0, fixed separator (#236)
1 parent 35f1908 commit e61aa11

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ maintainers = [
1414
description = "Graphical user interface for the PEtab format"
1515
dependencies = [
1616
"pyside6",
17-
"pandas",
17+
"pandas<3.0.0",
1818
"antimony",
1919
"python-libsbml",
2020
"matplotlib",

src/petab_gui/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,9 @@ def process_file(filepath, logger):
408408
)
409409
return None, None
410410

411+
# if separator is None:
412+
# separator = "\t"
413+
411414
# Case 3.2: Identify the table type based on header content
412415
if {petab.C.OBSERVABLE_ID, petab.C.MEASUREMENT, petab.C.TIME}.issubset(
413416
header
@@ -427,7 +430,7 @@ def process_file(filepath, logger):
427430
petab.C.CONDITION_ID in header
428431
or f"\ufeff{petab.C.CONDITION_ID}" in header
429432
):
430-
return "condition", separator
433+
return "condition", separator if separator is not None else "\t"
431434
if petab.C.PLOT_ID in header:
432435
return "visualization", separator
433436
logger.log_message(

0 commit comments

Comments
 (0)