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 9d173f8 commit 52a1812Copy full SHA for 52a1812
petab/v2/petab1to2.py
@@ -460,15 +460,15 @@ def update_prior_pars(row):
460
prior_type = row.get(v2.C.PRIOR_DISTRIBUTION)
461
prior_pars = row.get(v2.C.PRIOR_PARAMETERS)
462
463
- if prior_type not in (v2.C.UNIFORM, v2.C.LOG_UNIFORM) or not pd.isna(
+ if prior_type in (v2.C.UNIFORM, v2.C.LOG_UNIFORM) and pd.isna(
464
prior_pars
465
):
466
- return prior_pars
+ return (
467
+ f"{row[v2.C.LOWER_BOUND]}{v2.C.PARAMETER_SEPARATOR}"
468
+ f"{row[v2.C.UPPER_BOUND]}"
469
+ )
470
- return (
- f"{row[v2.C.LOWER_BOUND]}{v2.C.PARAMETER_SEPARATOR}"
- f"{row[v2.C.UPPER_BOUND]}"
471
- )
+ return prior_pars
472
473
df[v2.C.PRIOR_PARAMETERS] = df.apply(update_prior_pars, axis=1)
474
0 commit comments