Skip to content

Commit

Permalink
See pd limits to match sasview. Fixes #606.
Browse files Browse the repository at this point in the history
Paul Kienzle committed Jan 21, 2025
1 parent 654f629 commit 805009d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sasmodels/bumps_model.py
Original file line number Diff line number Diff line change
@@ -66,8 +66,9 @@ def create_parameters(model_info, **kwargs):
value = kwargs.pop(p.name, p.default)
pars[p.name] = BumpsParameter.default(value, name=p.name, limits=p.limits)
if p.polydisperse:
pd_limits = (-360.0, 360.0) if p.type == "orientation" else (0., 1.)
for part, default, limits in [
('_pd', 0., pars[p.name].limits),
('_pd', 0., pd_limits),
('_pd_n', 35., (0, 1000)),
('_pd_nsigma', 3., (0, 10)),
]:

0 comments on commit 805009d

Please sign in to comment.