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 eeb18ac commit 529e99fCopy full SHA for 529e99f
petab/v1/priors.py
@@ -278,7 +278,10 @@ def from_par_dict(
278
:return: A distribution object.
279
"""
280
dist_type = d.get(f"{type_}PriorType", C.PARAMETER_SCALE_UNIFORM)
281
- if not isinstance(dist_type, str) and np.isnan(dist_type):
+ if (
282
+ (not isinstance(dist_type, str) and np.isnan(dist_type))
283
+ or not dist_type
284
+ ):
285
dist_type = C.PARAMETER_SCALE_UNIFORM
286
287
pscale = d.get(C.PARAMETER_SCALE, C.LIN)
0 commit comments