Changeset c728295 in sasview for src/sas/sascalc/corfunc


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/sascalc/corfunc
Files:
2 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): 
Note: See TracChangeset for help on using the changeset viewer.