Changeset 81bece4 in sasview for sansview/perspectives/fitting


Ignore:
Timestamp:
Oct 21, 2009 1:57:09 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
acd0bda3
Parents:
7ef319e
Message:

refactor models.py

Location:
sansview/perspectives/fitting
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/models.py

    r8d78399 r81bece4  
    269269        self.shape_indep_list.append(PeakLorentzModel) 
    270270         
    271         from sans.models.FractalModel import FractalModel 
    272         class FractalAbsModel(FractalModel): 
    273             def _Fractal(self, x): 
    274                 return FractalModel._Fractal(self, math.fabs(x)) 
     271        from sans.models.FractalAbsModel import FractalAbsModel 
    275272        self.shape_indep_list.append(FractalAbsModel) 
    276273         
     
    278275        self.shape_indep_list.append( LorentzModel)  
    279276             
    280         from sans.models.PowerLawModel import PowerLawModel 
    281         class PowerLawAbsModel(PowerLawModel): 
    282             def _PowerLaw(self, x): 
    283                 try: 
    284                     return PowerLawModel._PowerLaw(self, math.fabs(x)) 
    285                 except: 
    286                     print sys.exc_value   
     277        from sans.models.PowerLawAbsModel import PowerLawAbsModel 
    287278        self.shape_indep_list.append( PowerLawAbsModel ) 
     279         
    288280        from sans.models.TeubnerStreyModel import TeubnerStreyModel 
    289281        self.shape_indep_list.append(TeubnerStreyModel ) 
Note: See TracChangeset for help on using the changeset viewer.