Changeset 87b9447 in sasview for src/sas/sascalc


Ignore:
Timestamp:
Oct 5, 2016 7:21:51 PM (8 years ago)
Author:
ajj
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
24f6f4a
Parents:
44c0746
Message:

first attempt at using hankel transform as resolution function (not working)

File:
1 edited

Legend:

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

    r44c0746 r87b9447  
    4848        return None 
    4949 
     50    # Look for sesans 
     51    _found_sesans = False 
     52    if hasattr(data,'lam') : 
     53        _found_sesans = True 
     54        logging.info("Found SESANS data!!") 
     55 
     56    # If we found sesans data, do the necessary jiggery pokery 
     57    if _found_sesans == True: 
     58        return sesans_smear(data, model) 
     59 
    5060    # Look for resolution smearing data 
    5161    _found_resolution = False 
     
    8393    if _found_slit == True: 
    8494        return slit_smear(data, model) 
    85  
    86     # Look for sesans 
    87     _found_sesans = False 
    88     if data.hasattr(lam): 
    89         _found_sesans = True 
    90         logging.info("Found SESANS data!!") 
    91  
    92     # If we found sesans data, do the necessary jiggery pokery 
    93     if _found_sesans == True: 
    94         return sesans_smear(data, model) 
    9595 
    9696    return None 
Note: See TracChangeset for help on using the changeset viewer.