Changeset 412c509 in sasview for src/sas/sasgui/perspectives/corfunc


Ignore:
Timestamp:
Jul 11, 2017 11:59:44 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:
2a54ba5
Parents:
457f735
git-author:
Lewis O'Driscoll <lewis.o'driscoll@…> (07/11/17 11:59:23)
git-committer:
Lewis O'Driscoll <lewis.o'driscoll@…> (07/11/17 11:59:44)
Message:

Compute 3D correlation function as well as 1D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/corfunc/corfunc_panel.py

    r457f735 r412c509  
    5555        self._data = data # The data to be analysed (corrected fr background) 
    5656        self._extrapolated_data = None # The extrapolated data set 
     57        # Callable object of class CorfuncCalculator._Interpolator representing 
     58        # the extrapolated and interpolated data 
     59        self._extrapolated_fn = None 
    5760        self._transformed_data = None # Fourier trans. of the extrapolated data 
    5861        self._calculator = CorfuncCalculator() 
     
    218221 
    219222        try: 
    220             params, self._extrapolated_data = self._calculator.compute_extrapolation() 
     223            params, self._extrapolated_data, self._extrapolated_fn = \ 
     224                self._calculator.compute_extrapolation() 
    221225        except Exception as e: 
    222226            msg = "Error extrapolating data:\n" 
     
    241245            self._calculator.compute_transform(self._extrapolated_data, 
    242246                self.transform_type, background=self.background, 
     247                extrap_fn=self._extrapolated_fn, 
    243248                completefn=self.transform_complete, 
    244249                updatefn=self.transform_update) 
     
    276281        plot_y = transform1.y[np.where(transform1.x <= 200)] 
    277282        self._manager.show_data(Data1D(plot_x, plot_y), TRANSFORM_LABEL1) 
     283        plot_x = transform3.x[np.where(transform3.x <= 200)] 
     284        plot_y = transform3.y[np.where(transform3.x <= 200)] 
     285        self._manager.show_data(Data1D(plot_x, plot_y), TRANSFORM_LABEL3) 
    278286        # Only enable extract params button if a fourier trans. has been done 
    279287        if self.transform_type == 'fourier': 
Note: See TracChangeset for help on using the changeset viewer.