Skip to content

Commit

Permalink
Fixed inverse q-spacing in the geometric extrapolation function
Browse files Browse the repository at this point in the history
  • Loading branch information
Caitlyn Wolf authored and Caitlyn Wolf committed Jun 27, 2023
1 parent 7ceea84 commit 81ffb2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sasmodels/resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def geometric_extrapolation(q, q_min, q_max, points_per_decade=None):
if points_per_decade is None:
log_delta_q = (len(q) - 1) / (log(q[-1]) - log(q[0]))
else:
log_delta_q = log(10.) / points_per_decade
log_delta_q = points_per_decade / log(10.)
if q_min < q[0]:
if q_min < 0:
q_min = q[0]*MINIMUM_ABSOLUTE_Q
Expand Down

0 comments on commit 81ffb2e

Please sign in to comment.