Changeset 364658d in sasview for sansmodels/src/sans/models


Ignore:
Timestamp:
Apr 18, 2012 2:23:17 PM (13 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:
57c9d61
Parents:
2e0053e
Message:

Fixing code style problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/SphericalSLDModel.py

    r2e0053e r364658d  
    55from sans.models.SphereSLDModel import SphereSLDModel 
    66from copy import deepcopy 
    7 from math import floor 
    87func_list = {'Erf(|nu|*z)':0, 'RPower(z^|nu|)':1, 'LPower(z^|nu|)':2, \ 
    98                     'RExp(-|nu|*z)':3, 'LExp(-|nu|*z)':4} 
     
    159158                    continue 
    160159 
    161                 for nshell in range(self.n_shells,max_nshells): 
     160                for nshell in range(self.n_shells, max_nshells): 
    162161                    if key.split('_')[1] == 'flat%s' % str(nshell+1): 
    163162                        try: 
     
    193192        z0 += self.params['rad_core0'] 
    194193        # for layers from the core 
    195         for n in range(1, self.n_shells+2): 
    196             i = n 
    197             dz = self.params['thick_inter%s'% str(i-1)]/n_sub 
     194        for i in range(1, self.n_shells+2): 
     195            dz = self.params['thick_inter%s' % str(i-1)]/n_sub 
    198196            # j=0 for interface, j=1 for flat layer  
    199197            for j in range(0, 2): 
Note: See TracChangeset for help on using the changeset viewer.