- Timestamp:
- Oct 21, 2009 1:57:09 PM (15 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, 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
- Location:
- sansview/perspectives/fitting
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/models.py
r8d78399 r81bece4 269 269 self.shape_indep_list.append(PeakLorentzModel) 270 270 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 275 272 self.shape_indep_list.append(FractalAbsModel) 276 273 … … 278 275 self.shape_indep_list.append( LorentzModel) 279 276 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 287 278 self.shape_indep_list.append( PowerLawAbsModel ) 279 288 280 from sans.models.TeubnerStreyModel import TeubnerStreyModel 289 281 self.shape_indep_list.append(TeubnerStreyModel )
Note: See TracChangeset
for help on using the changeset viewer.