Changeset 457f735 in sasview for src/sas/sascalc/corfunc
- Timestamp:
- Jul 11, 2017 5:05:13 AM (7 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/corfunc/transform_thread.py
rd03228e r457f735 25 25 return 26 26 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() 29 29 except: 30 30 self.update(msg="Fourier transform failed.") … … 36 36 37 37 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() 39 40 40 self.complete(transform=transform) 41 transforms = (transform1, transform3) 42 43 self.complete(transforms=transforms) 41 44 42 45 class HilbertThread(CalcThread):
Note: See TracChangeset
for help on using the changeset viewer.