Changeset 3fd3c3a3 in sasview for src/sas/sascalc/data_util


Ignore:
Timestamp:
Apr 8, 2017 11:10:28 AM (8 years ago)
Author:
jhbakker
Branches:
costrafo411
Children:
ba91f71
Parents:
7cbbacd
Message:

isgood

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/data_util/qsmearing.py

    r775e0b7 r3fd3c3a3  
    7272        zaccept = Converter(qunits)(qmax, "1/A"), 
    7373        Rmax = 10000000 
    74         hankel = SesansTransform(data.x, SElength, zaccept, Rmax) 
     74        # data must have the isoriented flag here! 
     75        coshankel = SesansTransform(data.x, SElength, zaccept, Rmax) 
    7576        # Then return the actual transform, as if it were a smearing function 
    76         return PySmear(hankel, model, offset=0) 
     77        if data.isoriented: 
     78            return PySmear2D(coshankel) 
     79        else: 
     80            return PySmear(coshankel, model, offset=0) 
    7781 
    7882    _found_resolution = False 
Note: See TracChangeset for help on using the changeset viewer.