Skip to content

Commit

Permalink
Merge pull request #209 from SasView/ticket-1242-2d-resolution
Browse files Browse the repository at this point in the history
Use dQ/|Q| for 2-D resolution
  • Loading branch information
pkienzle authored Mar 30, 2019
2 parents 09d7021 + 31c1bae commit d4cde37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sas/sasgui/perspectives/fitting/fitpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2364,8 +2364,8 @@ def _set_pinhole_smear(self):
elif self.dx_percent is not None:
percent = self.dx_percent/100
if self._is_2D():
data.dqx_data[data.dqx_data == 0] = percent * data.qx_data
data.dqy_data[data.dqy_data == 0] = percent * data.qy_data
q = np.sqrt(data.qx_data**2 + data.qy_data**2)
data.dqx_data = data.dqy_data = percent*q
else:
data.dx = percent * data.x
self.current_smearer = smear_selection(data, self.model)
Expand Down

0 comments on commit d4cde37

Please sign in to comment.