Changeset c728295 in sasview
- 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
- Files:
-
- 3 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): -
src/sas/sasgui/perspectives/corfunc/corfunc_panel.py
r37d53225 rc728295 245 245 self._calculator.compute_transform(self._extrapolated_data, 246 246 self.transform_type, background=self.background, 247 extrap_fn=self._extrapolated_fn,248 247 completefn=self.transform_complete, 249 248 updatefn=self.transform_update) … … 275 274 self._extract_btn.Disable() 276 275 return 276 277 277 self._transformed_data = transforms 278 278 (transform1, transform3, idf) = transforms 279 import numpy as np280 279 plot_x = transform1.x[np.where(transform1.x <= 200)] 281 280 plot_y = transform1.y[np.where(transform1.x <= 200)] … … 284 283 self._manager.show_data(transform3, TRANSFORM_LABEL3) 285 284 self._manager.show_data(idf, IDF_LABEL) 285 286 286 # Only enable extract params button if a fourier trans. has been done 287 287 if self.transform_type == 'fourier':
Note: See TracChangeset
for help on using the changeset viewer.