Skip to content

Commit 529e99f

Browse files
PaulJonasJostdweindl
authored andcommitted
Allow empty string "" in columns to be overridden with default values in priors.
1 parent eeb18ac commit 529e99f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

petab/v1/priors.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,10 @@ def from_par_dict(
278278
:return: A distribution object.
279279
"""
280280
dist_type = d.get(f"{type_}PriorType", C.PARAMETER_SCALE_UNIFORM)
281-
if not isinstance(dist_type, str) and np.isnan(dist_type):
281+
if (
282+
(not isinstance(dist_type, str) and np.isnan(dist_type))
283+
or not dist_type
284+
):
282285
dist_type = C.PARAMETER_SCALE_UNIFORM
283286

284287
pscale = d.get(C.PARAMETER_SCALE, C.LIN)

0 commit comments

Comments
 (0)