Changeset c728295 in sasview


Ignore:
Timestamp:
Jul 18, 2017 11:46:10 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:
d78b5cb
Parents:
7dda833
Message:

Remove unused argument and import

Location:
src/sas
Files:
3 edited

Legend:

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

    r412c509 rc728295  
    131131        return params, extrapolation, s2 
    132132 
    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): 
    135135        """ 
    136136        Transform an extrapolated scattering curve into a correlation function. 
     
    153153        if trans_type == 'fourier': 
    154154            self._transform_thread = FourierThread(self._data, extrapolation, 
    155             background, extrap_fn=extrap_fn, completefn=completefn, 
     155            background, completefn=completefn, 
    156156            updatefn=updatefn) 
    157157        elif trans_type == 'hilbert': 
  • src/sas/sascalc/corfunc/transform_thread.py

    r37d53225 rc728295  
    77 
    88class 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): 
    1111        CalcThread.__init__(self, updatefn=updatefn, completefn=completefn) 
    1212        self.data = raw_data 
    1313        self.background = bg 
    1414        self.extrapolation = extrapolated_data 
    15         self.extrap_fn = extrap_fn 
    1615 
    1716    def check_if_cancelled(self): 
  • src/sas/sasgui/perspectives/corfunc/corfunc_panel.py

    r37d53225 rc728295  
    245245            self._calculator.compute_transform(self._extrapolated_data, 
    246246                self.transform_type, background=self.background, 
    247                 extrap_fn=self._extrapolated_fn, 
    248247                completefn=self.transform_complete, 
    249248                updatefn=self.transform_update) 
     
    275274            self._extract_btn.Disable() 
    276275            return 
     276 
    277277        self._transformed_data = transforms 
    278278        (transform1, transform3, idf) = transforms 
    279         import numpy as np 
    280279        plot_x = transform1.x[np.where(transform1.x <= 200)] 
    281280        plot_y = transform1.y[np.where(transform1.x <= 200)] 
     
    284283        self._manager.show_data(transform3, TRANSFORM_LABEL3) 
    285284        self._manager.show_data(idf, IDF_LABEL) 
     285 
    286286        # Only enable extract params button if a fourier trans. has been done 
    287287        if self.transform_type == 'fourier': 
Note: See TracChangeset for help on using the changeset viewer.