Changeset 364658d in sasview for sansmodels/src/sans/models
- Timestamp:
- Apr 18, 2012 2:23:17 PM (13 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:
- 57c9d61
- Parents:
- 2e0053e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/SphericalSLDModel.py
r2e0053e r364658d 5 5 from sans.models.SphereSLDModel import SphereSLDModel 6 6 from copy import deepcopy 7 from math import floor8 7 func_list = {'Erf(|nu|*z)':0, 'RPower(z^|nu|)':1, 'LPower(z^|nu|)':2, \ 9 8 'RExp(-|nu|*z)':3, 'LExp(-|nu|*z)':4} … … 159 158 continue 160 159 161 for nshell in range(self.n_shells, max_nshells):160 for nshell in range(self.n_shells, max_nshells): 162 161 if key.split('_')[1] == 'flat%s' % str(nshell+1): 163 162 try: … … 193 192 z0 += self.params['rad_core0'] 194 193 # 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 198 196 # j=0 for interface, j=1 for flat layer 199 197 for j in range(0, 2):
Note: See TracChangeset
for help on using the changeset viewer.