diff --git a/src/sas/sasgui/perspectives/fitting/fitpage.py b/src/sas/sasgui/perspectives/fitting/fitpage.py index 5567b36f5e..e63e057e16 100644 --- a/src/sas/sasgui/perspectives/fitting/fitpage.py +++ b/src/sas/sasgui/perspectives/fitting/fitpage.py @@ -2363,8 +2363,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)