Changeset e08bd5b in sasview for sansmodels/src/sans/models
- Timestamp:
- Feb 29, 2012 8:48:08 AM (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:
- 2d6f1f1
- Parents:
- 6319646
- Location:
- sansmodels/src/sans/models
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/BaseComponent.py
r0145a25 re08bd5b 69 69 def runXY(self, x): return NotImplemented 70 70 def calculate_ER(self): return NotImplemented 71 def calculate_VR(self): return NotImplemented 71 72 def evalDistribution(self, qdist): 72 73 """ -
sansmodels/src/sans/models/MultiplicationModel.py
rccb7363 re08bd5b 157 157 value = self.params['volfraction'] 158 158 if value != None: 159 self.p_model.setParam( 'scale', value) 159 factor = self.p_model.calculate_VR() 160 val = factor * value 161 self.p_model.setParam( 'scale', val) 160 162 161 163
Note: See TracChangeset
for help on using the changeset viewer.