Skip to content

Commit

Permalink
switched order of length and width in slit_resolution method for cons…
Browse files Browse the repository at this point in the history
…istency with Slit1D
  • Loading branch information
caitwolf committed Jan 16, 2024
1 parent 17010b7 commit 563ad5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sasmodels/resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def __init__(self, q, q_length=None, q_width=None, q_calc=None):

# Build weight matrix from calculated q values
self.weight_matrix = (
slit_resolution(self.q_calc, self.q, q_width, q_length)
slit_resolution(self.q_calc, self.q, q_length, q_width)
)
self.q_calc = abs(self.q_calc)

Expand Down Expand Up @@ -216,7 +216,7 @@ def pinhole_resolution(q_calc, q, q_width, nsigma=PINHOLE_N_SIGMA):
return weights


def slit_resolution(q_calc, q, width, length, n_length=30):
def slit_resolution(q_calc, q, length, width, n_length=30):
r"""
Build a weight matrix to compute *I_s(q)* from *I(q_calc)*, given
$q_\perp$ = *width* (in the high-resolution axis) and $q_\parallel$
Expand Down

0 comments on commit 563ad5b

Please sign in to comment.