Skip to content

Commit

Permalink
Use dQ/|Q| for 2D resolution. Cherry picked from master #209
Browse files Browse the repository at this point in the history
  • Loading branch information
rozyczko committed Mar 19, 2019
1 parent 12dfce6 commit b2572f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sas/qtgui/Perspectives/Fitting/SmearingWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ def onPinholeSmear(self):
data.dqy_data = np.zeros(len_data)
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.dx_data = data.dqy_data = percent*q
else:
len_data = len(data.x)
data.dx = np.zeros(len_data)
Expand Down

1 comment on commit b2572f4

@pkienzle
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code belongs in sascalc rather than the GUI (see ticket 295). I know this because you have just reminded me that I need to update the headless fitpage loader with exactly the same change. Probably wait until 5.1 since building a reasonable internal state object independent of the GUI is more than you want to attempt before a 5.0 release.

Please sign in to comment.