26
26
validate_yaml_syntax ,
27
27
yaml ,
28
28
)
29
- from ..v1 .core import concat_tables , get_visualization_df
29
+ from ..v1 .core import concat_tables
30
30
from ..v1 .distributions import Distribution
31
31
from ..v1 .models .model import Model , model_factory
32
32
from ..v1 .yaml import get_path_prefix
@@ -55,8 +55,6 @@ class Problem:
55
55
- observable table
56
56
- mapping table
57
57
58
- Optionally, it may contain visualization tables.
59
-
60
58
See also :doc:`petab:v2/documentation_data_format`.
61
59
"""
62
60
@@ -69,7 +67,6 @@ def __init__(
69
67
measurement_table : core .MeasurementTable = None ,
70
68
parameter_table : core .ParameterTable = None ,
71
69
mapping_table : core .MappingTable = None ,
72
- visualization_df : pd .DataFrame = None ,
73
70
config : ProblemConfig = None ,
74
71
):
75
72
from ..v2 .lint import default_validation_tasks
@@ -97,8 +94,6 @@ def __init__(
97
94
parameters = []
98
95
)
99
96
100
- self .visualization_df = visualization_df
101
-
102
97
def __str__ (self ):
103
98
model = f"with model ({ self .model } )" if self .model else "without model"
104
99
@@ -257,15 +252,6 @@ def get_path(filename):
257
252
else None
258
253
)
259
254
260
- # TODO: remove in v2?!
261
- visualization_files = [get_path (f ) for f in config .visualization_files ]
262
- # If there are multiple tables, we will merge them
263
- visualization_df = (
264
- concat_tables (visualization_files , get_visualization_df )
265
- if visualization_files
266
- else None
267
- )
268
-
269
255
observable_files = [get_path (f ) for f in config .observable_files ]
270
256
# If there are multiple tables, we will merge them
271
257
observable_df = (
@@ -289,7 +275,6 @@ def get_path(filename):
289
275
parameter_df = parameter_df ,
290
276
observable_df = observable_df ,
291
277
model = model ,
292
- visualization_df = visualization_df ,
293
278
mapping_df = mapping_df ,
294
279
config = config ,
295
280
)
@@ -301,7 +286,6 @@ def from_dfs(
301
286
experiment_df : pd .DataFrame = None ,
302
287
measurement_df : pd .DataFrame = None ,
303
288
parameter_df : pd .DataFrame = None ,
304
- visualization_df : pd .DataFrame = None ,
305
289
observable_df : pd .DataFrame = None ,
306
290
mapping_df : pd .DataFrame = None ,
307
291
config : ProblemConfig = None ,
@@ -315,7 +299,6 @@ def from_dfs(
315
299
measurement_df: PEtab measurement table
316
300
parameter_df: PEtab parameter table
317
301
observable_df: PEtab observable table
318
- visualization_df: PEtab visualization table
319
302
mapping_df: PEtab mapping table
320
303
model: The underlying model
321
304
config: The PEtab problem configuration
@@ -336,7 +319,6 @@ def from_dfs(
336
319
measurement_table = measurement_table ,
337
320
parameter_table = parameter_table ,
338
321
mapping_table = mapping_table ,
339
- visualization_df = visualization_df ,
340
322
config = config ,
341
323
)
342
324
@@ -1117,8 +1099,7 @@ def model_dump(self, **kwargs) -> dict[str, Any]:
1117
1099
'measurement_files': [],
1118
1100
'model_files': {},
1119
1101
'observable_files': [],
1120
- 'parameter_file': [],
1121
- 'visualization_files': []},
1102
+ 'parameter_file': []},
1122
1103
'experiments': [],
1123
1104
'mappings': [],
1124
1105
'measurements': [],
@@ -1191,7 +1172,6 @@ class ProblemConfig(BaseModel):
1191
1172
condition_files : list [str | AnyUrl ] = []
1192
1173
experiment_files : list [str | AnyUrl ] = []
1193
1174
observable_files : list [str | AnyUrl ] = []
1194
- visualization_files : list [str | AnyUrl ] = []
1195
1175
mapping_files : list [str | AnyUrl ] = []
1196
1176
1197
1177
#: Extensions used by the problem.
0 commit comments