Changeset 4fe4394 in sasview for DataLoader/readers


Ignore:
Timestamp:
Oct 10, 2008 4:47:33 PM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
ae60f86
Parents:
2139c3f
Message:

implemented smearer selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/readers/danse_reader.py

    rb99ac227 r4fe4394  
    155155             
    156156            # Qx and Qy vectors 
     157            theta = pixel / distance / 100.0 
     158            stepq = 4.0*math.pi/wavelength * math.sin(theta/2.0)  
    157159            for i_x in range(size_x): 
    158160                theta = (i_x-center_x+1)*pixel / distance / 100.0 
     
    235237             
    236238            # Store limits of the image (2D array) 
     239            xmin    =xmin-stepq/2.0 
     240            xmax    =xmax+stepq/2.0 
     241            ymin    =ymin-stepq/2.0 
     242            ymax    =ymax+stepq/2.0 
     243             
    237244            if has_converter == True and output.Q_unit != '1/A': 
    238245                xmin = data_conv_q(xmin, units=output.Q_unit) 
Note: See TracChangeset for help on using the changeset viewer.