Changeset c728295 in sasview for src/sas/sascalc/corfunc
- Timestamp:
- Jul 18, 2017 11:46:10 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:
- d78b5cb
- Parents:
- 7dda833
- Location:
- src/sas/sascalc/corfunc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/corfunc/corfunc_calculator.py
r412c509 rc728295 131 131 return params, extrapolation, s2 132 132 133 def compute_transform(self, extrapolation, trans_type, extrap_fn=None,134 background=None,completefn=None, updatefn=None):133 def compute_transform(self, extrapolation, trans_type, background=None, 134 completefn=None, updatefn=None): 135 135 """ 136 136 Transform an extrapolated scattering curve into a correlation function. … … 153 153 if trans_type == 'fourier': 154 154 self._transform_thread = FourierThread(self._data, extrapolation, 155 background, extrap_fn=extrap_fn,completefn=completefn,155 background, completefn=completefn, 156 156 updatefn=updatefn) 157 157 elif trans_type == 'hilbert': -
src/sas/sascalc/corfunc/transform_thread.py
r37d53225 rc728295 7 7 8 8 class FourierThread(CalcThread): 9 def __init__(self, raw_data, extrapolated_data, bg, extrap_fn=None,10 updatefn=None,completefn=None):9 def __init__(self, raw_data, extrapolated_data, bg, updatefn=None, 10 completefn=None): 11 11 CalcThread.__init__(self, updatefn=updatefn, completefn=completefn) 12 12 self.data = raw_data 13 13 self.background = bg 14 14 self.extrapolation = extrapolated_data 15 self.extrap_fn = extrap_fn16 15 17 16 def check_if_cancelled(self):
Note: See TracChangeset
for help on using the changeset viewer.