Changeset e758662 in sasmodels
- Timestamp:
- Jun 27, 2016 11:27:00 AM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- fa800e72
- Parents:
- 117090a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/sasview_model.py
rb3a85cd re758662 261 261 :param par_name: the parameter name to check 262 262 """ 263 return par_name .lower()in self.fixed263 return par_name in self.fixed 264 264 #For the future 265 265 #return self.params[str(par_name)].is_fittable() … … 288 288 if len(toks) == 2: 289 289 for item in self.dispersion.keys(): 290 if item .lower() == toks[0].lower():290 if item == toks[0]: 291 291 for par in self.dispersion[item]: 292 if par .lower() == toks[1].lower():292 if par == toks[1]: 293 293 self.dispersion[item][par] = value 294 294 return … … 296 296 # Look for standard parameter 297 297 for item in self.params.keys(): 298 if item .lower() == name.lower():298 if item == name: 299 299 self.params[item] = value 300 300 return … … 313 313 if len(toks) == 2: 314 314 for item in self.dispersion.keys(): 315 if item .lower() == toks[0].lower():315 if item == toks[0]: 316 316 for par in self.dispersion[item]: 317 if par .lower() == toks[1].lower():317 if par == toks[1]: 318 318 return self.dispersion[item][par] 319 319 else: 320 320 # Look for standard parameter 321 321 for item in self.params.keys(): 322 if item .lower() == name.lower():322 if item == name: 323 323 return self.params[item] 324 324 … … 339 339 """ 340 340 # TODO: fix test so that parameter order doesn't matter 341 ret = ['%s.%s' % (d .lower(), p)341 ret = ['%s.%s' % (d, p) 342 342 for d in self._model_info['partype']['pd-2d'] 343 343 for p in ('npts', 'nsigmas', 'width')] … … 484 484 :param dispersion: dispersion object of type Dispersion 485 485 """ 486 if parameter .lower() in (s.lower()for s in self.params.keys()):486 if parameter in (s for s in self.params.keys()): 487 487 # TODO: Store the disperser object directly in the model. 488 488 # The current method of creating one on the fly whenever it is
Note: See TracChangeset
for help on using the changeset viewer.