From b2572f45f6ecc8729967e8171989afef8b0d7fb0 Mon Sep 17 00:00:00 2001 From: Piotr Rozyczko Date: Tue, 19 Mar 2019 09:14:42 +0100 Subject: [PATCH] Use dQ/|Q| for 2D resolution. Cherry picked from master #209 --- src/sas/qtgui/Perspectives/Fitting/SmearingWidget.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sas/qtgui/Perspectives/Fitting/SmearingWidget.py b/src/sas/qtgui/Perspectives/Fitting/SmearingWidget.py index 01d2f41b5e..2840991b2b 100644 --- a/src/sas/qtgui/Perspectives/Fitting/SmearingWidget.py +++ b/src/sas/qtgui/Perspectives/Fitting/SmearingWidget.py @@ -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)