Changeset 339ce67 in sasview for sansmodels/src/sans/models/ReflectivityModel.py
- Timestamp:
- Oct 12, 2010 6:22:08 PM (14 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:
- 20f00bed
- Parents:
- aaad3098
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/ReflectivityModel.py
r35aface r339ce67 49 49 self.model.params['n_layers'] = self.n_layers 50 50 51 ## functional multiplicity of the model 52 self.multiplicity = max_nshells 51 ## functional multiplicity info of the model 52 # [int(maximum no. of functionality),"str(Titl), 53 # [str(name of function0),...], [str(x-asix name of sld),...]] 54 self.multiplicity_info = [max_nshells,"No. of Layers:",[],['Depth']] 55 53 56 54 57 def _clone(self, obj): … … 84 87 n = 0 85 88 pos = len(name.split('_'))-1 86 if name.split('_')[0] == 'func': 89 if name.split('_')[0] == 'sldIM': 90 continue 91 elif name.split('_')[0] == 'func': 87 92 n= -1 88 93 while n<self.n_layers: … … 141 146 if key.split('_')[1] == 'flat%s' % str(nshell+1): 142 147 try: 143 value = self.model.params['sld_medium'] 148 if key.split('_')[0] == 'sld': 149 value = self.model.params['sld_medium'] 150 elif key.split('_')[0] == 'sldIM': 151 value = self.model.params['sldIM_medium'] 144 152 self.model.setParam(key, value) 145 153 except: pass
Note: See TracChangeset
for help on using the changeset viewer.