Changeset e66f9c1 in sasview for src


Ignore:
Timestamp:
Mar 27, 2019 12:57:08 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
ticket-1094-headless
Children:
c080c943
Parents:
7f5aa4f
Message:

use dQ/|Q| for user-defined 2D pinhole smearing in headless fits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/fit/fitstate.py

    r7f5aa4f re66f9c1  
    299299        if state.enable2D: 
    300300            # smear_type is Pinhole2D. 
    301             # dqx_data, dqy_data initialized to 0 
    302             data.dqx_data = percent * data.qx_data 
    303             data.dqy_data = percent * data.qy_data 
     301            q = np.sqrt(data.qx_data**2 + data.qy_data**2) 
     302            data.dx_data = data.dqy_data = percent*q 
    304303        else: 
    305304            data.dx = percent * data.x 
Note: See TracChangeset for help on using the changeset viewer.