diff --git a/petab/v1/priors.py b/petab/v1/priors.py index 6531fa0e..b80a29ae 100644 --- a/petab/v1/priors.py +++ b/petab/v1/priors.py @@ -278,7 +278,10 @@ def from_par_dict( :return: A distribution object. """ dist_type = d.get(f"{type_}PriorType", C.PARAMETER_SCALE_UNIFORM) - if not isinstance(dist_type, str) and np.isnan(dist_type): + if ( + (not isinstance(dist_type, str) and np.isnan(dist_type)) + or not dist_type + ): dist_type = C.PARAMETER_SCALE_UNIFORM pscale = d.get(C.PARAMETER_SCALE, C.LIN)