We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a328559 commit 24679e8Copy full SHA for 24679e8
petab/v2/petab1to2.py
@@ -416,15 +416,12 @@ def update_prior(row):
416
if pd.isna(pscale):
417
pscale = v1.C.LIN
418
419
- if (
420
- pscale == v1.C.LIN
421
- or prior_type not in v1.C.PARAMETER_SCALE_PRIOR_TYPES
422
- ):
+ if prior_type not in v1.C.PARAMETER_SCALE_PRIOR_TYPES:
423
return prior_type
424
425
- new_prior_type = (
426
- f"{pscale}-{prior_type.removeprefix('parameterScale').lower()}"
427
- )
+ new_prior_type = prior_type.removeprefix("parameterScale").lower()
+ if pscale != v1.C.LIN:
+ new_prior_type = f"{pscale}-{new_prior_type}"
428
429
if new_prior_type not in v2.C.PRIOR_DISTRIBUTIONS:
430
raise NotImplementedError(
0 commit comments