Changeset 79411b2 in sasview


Ignore:
Timestamp:
Apr 12, 2012 3:22:49 PM (12 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
2e9c3ea
Parents:
7415cbe
Message:

Fixing code style problems

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/load_thread.py

    r6572274 r79411b2  
    11 
    22import time 
    3 import sys 
    43 
    54 
     
    4342        try: 
    4443            data =  self.loader.load(self.path) 
    45             elapsed = time.time() - self.starttime 
    4644            self.complete(data=data) 
    4745        except KeyboardInterrupt: 
  • sansmodels/src/sans/models/GaussLorentzGelModel.py

    r8f20419d r79411b2  
    66 
    77from sans.models.BaseComponent import BaseComponent 
    8 from math import exp 
     8import math 
    99 
    1010class GaussLorentzGelModel(BaseComponent): 
     
    3030        ## Name of the model 
    3131        self.name = "GaussLorentzGel" 
    32         self.description="""I(q)=scale_g*exp(-q^2*Z^2/2)+scale_l/(1+q^2*z^2) 
     32        self.description = """I(q)=scale_g*exp(-q^2*Z^2/2)+scale_l/(1+q^2*z^2) 
    3333            + background 
    3434            List of default parameters: 
     
    5555 
    5656        #list of parameter that cannot be fitted 
    57         self.fixed= []   
     57        self.fixed = []   
    5858    def _gausslorentzgel(self, x): 
    5959        """ 
    6060        Model definition 
    6161        """ 
    62         inten = self.params['scale_g']*exp(-1.0*x*x*self.params['stat_colength']* \ 
     62        inten = self.params['scale_g']*math.exp(-1.0*x*x*self.params['stat_colength']* \ 
    6363                self.params['stat_colength']/2.0) + self.params['scale_l']/ \ 
    6464                (1.0 + (x*self.params['dyn_colength'])* \ 
Note: See TracChangeset for help on using the changeset viewer.