Skip to content

Commit df444bb

Browse files
committed
warn about dropping parameter table columns
1 parent 127492f commit df444bb

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

petab/v2/petab1to2.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,17 @@ def update_prior(row):
523523
errors="ignore",
524524
)
525525
# some columns were dropped in PEtab v2
526+
if df[v1.C.INITIALIZATION_PRIOR_TYPE].notna():
527+
warnings.warn(
528+
"Initialisation priors in parameter table are not supported "
529+
"in PEtab v2.",
530+
stacklevel=9,
531+
)
532+
if not (df[v1.C.PARAMETER_SCALE] == v1.C.LIN).all():
533+
warnings.warn(
534+
"Parameter scales are not supported in PEtab v2.",
535+
stacklevel=9,
536+
)
526537
df.drop(
527538
columns=[
528539
v1.C.INITIALIZATION_PRIOR_TYPE,

0 commit comments

Comments
 (0)