Skip to content

Commit 3bc6777

Browse files
authored
Fix parameter scale in sample_from_prior (#385)
Return sampled parameters on the parameter scale. This broke in #329 & #335.
1 parent 7a8ad8a commit 3bc6777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

petab/v1/sampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def sample_from_prior(
3333
bounds=tuple(bounds),
3434
transformation=scaling,
3535
)
36-
return prior.sample(shape=(n_starts,))
36+
return prior.sample(shape=(n_starts,), x_scaled=True)
3737

3838

3939
def sample_parameter_startpoints(

0 commit comments

Comments
 (0)