We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec5d036 commit 7c7982cCopy full SHA for 7c7982c
petab/v1/core.py
@@ -15,6 +15,7 @@
15
16
from . import yaml
17
from .C import * # noqa: F403
18
+from .visualize.lint import validate_visualization_df
19
20
logger = logging.getLogger(__name__)
21
__all__ = [
@@ -299,6 +300,10 @@ def flatten_timepoint_specific_output_overrides(
299
300
petab_problem.observable_df.index.name = OBSERVABLE_ID
301
petab_problem.measurement_df = pd.concat(new_measurement_dfs)
302
303
+ # remove visualization df if it is invalid
304
+ if not validate_visualization_df(petab_problem):
305
+ petab_problem.visualization_df = None
306
+
307
308
def unflatten_simulation_df(
309
simulation_df: pd.DataFrame,
0 commit comments