Changeset 31c1bae in sasview for src/sas/sasgui/perspectives


Ignore:
Timestamp:
Mar 12, 2019 8:24:24 AM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
release-4.2.2, ticket-1242-2d-resolution
Children:
d4cde37
Parents:
9a1204d
Message:

use dq |q| for 2-D resolution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/fitpage.py

    rca4f40d r31c1bae  
    23642364                percent = self.dx_percent/100 
    23652365                if self._is_2D(): 
    2366                     data.dqx_data[data.dqx_data == 0] = percent * data.qx_data 
    2367                     data.dqy_data[data.dqy_data == 0] = percent * data.qy_data 
     2366                    q = np.sqrt(data.qx_data**2 + data.qy_data**2) 
     2367                    data.dqx_data = data.dqy_data = percent*q 
    23682368                else: 
    23692369                    data.dx = percent * data.x 
Note: See TracChangeset for help on using the changeset viewer.