Skip to content

v2: Don't merge tables when creating Problem #404

Closed

Description

@dweindl

PEtab allows spreading conditions/observables/measurements/... across multiple tables. So far, the different tables of a certain type are merged when creating a Problem. This is convenient for simulation, but pretty inconvenient when loading/modifying/saving the problem, where one usually wants to maintain the old structure.

With the current object model, it should be relatively easy to store the individual tables separately in petab.v2.Problem.
E.g., change Problem.measurement_table from MeasurementTable to list[MeasurementTable] table and introduce a Problem.measurements property that combines them on demand.

Activity

  1. dilpath commented on Jul 20, 2025

    @dilpath
    Member

    Could keep measurement_df from petab.v1 for the combined table, and then a new problem.measurement_tables for the original tables. But then problem.measurement_df should be read-only, unless there is a nice way to edit the original tables via the combined table.

  2. self-assigned this
    on Jul 21, 2025
  3. added a commit that references this issue on Jul 21, 2025
    225ba55
  4. added a commit that references this issue on Jul 21, 2025
    fb36efa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions