diff --git a/src/sas/sasgui/perspectives/fitting/fitpage.py b/src/sas/sasgui/perspectives/fitting/fitpage.py index f3baf06b93..ad82c30816 100644 --- a/src/sas/sasgui/perspectives/fitting/fitpage.py +++ b/src/sas/sasgui/perspectives/fitting/fitpage.py @@ -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)