Changeset 457f735 in sasview for src/sas/sascalc/corfunc


Ignore:
Timestamp:
Jul 11, 2017 5:05:13 AM (7 years ago)
Author:
lewis
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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
412c509
Parents:
03e3902
Message:

Refactor in preparation for 3D transform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/corfunc/transform_thread.py

    rd03228e r457f735  
    2525            return 
    2626        try: 
    27             gamma = dct((iqs-background)*qs**2) 
    28             gamma = gamma / gamma.max() 
     27            gamma1 = dct((iqs-background)*qs**2) 
     28            gamma1 = gamma1 / gamma1.max() 
    2929        except: 
    3030            self.update(msg="Fourier transform failed.") 
     
    3636 
    3737        xs = np.pi*np.arange(len(qs),dtype=np.float32)/(q[1]-q[0])/len(qs) 
    38         transform = Data1D(xs, gamma) 
     38        transform1 = Data1D(xs, gamma1) 
     39        transform3 = Data1D() 
    3940 
    40         self.complete(transform=transform) 
     41        transforms = (transform1, transform3) 
     42 
     43        self.complete(transforms=transforms) 
    4144 
    4245class HilbertThread(CalcThread): 
Note: See TracChangeset for help on using the changeset viewer.