petab.v2.conditions

Functions operating on the PEtab condition table

Functions

get_condition_df(condition_file)

Read the provided condition file into a pandas.Dataframe.

write_condition_df(df, filename)

Write PEtab condition table

petab.v2.conditions.get_condition_df(condition_file: str | DataFrame | Path | None) DataFrame | None[source]

Read the provided condition file into a pandas.Dataframe.

Parameters:

condition_file – File name of PEtab condition file or pandas.Dataframe

petab.v2.conditions.write_condition_df(df: DataFrame, filename: str | Path) None[source]

Write PEtab condition table

Parameters:
  • df – PEtab condition table

  • filename – Destination file name