2626 validate_yaml_syntax ,
2727 yaml ,
2828)
29- from ..v1 .core import concat_tables , get_visualization_df
29+ from ..v1 .core import concat_tables
3030from ..v1 .distributions import Distribution
3131from ..v1 .models .model import Model , model_factory
3232from ..v1 .yaml import get_path_prefix
@@ -55,8 +55,6 @@ class Problem:
5555 - observable table
5656 - mapping table
5757
58- Optionally, it may contain visualization tables.
59-
6058 See also :doc:`petab:v2/documentation_data_format`.
6159 """
6260
@@ -69,7 +67,6 @@ def __init__(
6967 measurement_table : core .MeasurementTable = None ,
7068 parameter_table : core .ParameterTable = None ,
7169 mapping_table : core .MappingTable = None ,
72- visualization_df : pd .DataFrame = None ,
7370 config : ProblemConfig = None ,
7471 ):
7572 from ..v2 .lint import default_validation_tasks
@@ -97,8 +94,6 @@ def __init__(
9794 parameters = []
9895 )
9996
100- self .visualization_df = visualization_df
101-
10297 def __str__ (self ):
10398 model = f"with model ({ self .model } )" if self .model else "without model"
10499
@@ -257,15 +252,6 @@ def get_path(filename):
257252 else None
258253 )
259254
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-
269255 observable_files = [get_path (f ) for f in config .observable_files ]
270256 # If there are multiple tables, we will merge them
271257 observable_df = (
@@ -289,7 +275,6 @@ def get_path(filename):
289275 parameter_df = parameter_df ,
290276 observable_df = observable_df ,
291277 model = model ,
292- visualization_df = visualization_df ,
293278 mapping_df = mapping_df ,
294279 config = config ,
295280 )
@@ -301,7 +286,6 @@ def from_dfs(
301286 experiment_df : pd .DataFrame = None ,
302287 measurement_df : pd .DataFrame = None ,
303288 parameter_df : pd .DataFrame = None ,
304- visualization_df : pd .DataFrame = None ,
305289 observable_df : pd .DataFrame = None ,
306290 mapping_df : pd .DataFrame = None ,
307291 config : ProblemConfig = None ,
@@ -315,7 +299,6 @@ def from_dfs(
315299 measurement_df: PEtab measurement table
316300 parameter_df: PEtab parameter table
317301 observable_df: PEtab observable table
318- visualization_df: PEtab visualization table
319302 mapping_df: PEtab mapping table
320303 model: The underlying model
321304 config: The PEtab problem configuration
@@ -336,7 +319,6 @@ def from_dfs(
336319 measurement_table = measurement_table ,
337320 parameter_table = parameter_table ,
338321 mapping_table = mapping_table ,
339- visualization_df = visualization_df ,
340322 config = config ,
341323 )
342324
@@ -1117,8 +1099,7 @@ def model_dump(self, **kwargs) -> dict[str, Any]:
11171099 'measurement_files': [],
11181100 'model_files': {},
11191101 'observable_files': [],
1120- 'parameter_file': [],
1121- 'visualization_files': []},
1102+ 'parameter_file': []},
11221103 'experiments': [],
11231104 'mappings': [],
11241105 'measurements': [],
@@ -1191,7 +1172,6 @@ class ProblemConfig(BaseModel):
11911172 condition_files : list [str | AnyUrl ] = []
11921173 experiment_files : list [str | AnyUrl ] = []
11931174 observable_files : list [str | AnyUrl ] = []
1194- visualization_files : list [str | AnyUrl ] = []
11951175 mapping_files : list [str | AnyUrl ] = []
11961176
11971177 #: Extensions used by the problem.
0 commit comments