Changeset e08bd5b in sasview for sansmodels/src/sans/models


Ignore:
Timestamp:
Feb 29, 2012 8:48:08 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

c models fix: scale fix for P*S

Location:
sansmodels/src/sans/models
Files:
2 edited

Legend:

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

    r0145a25 re08bd5b  
    6969    def runXY(self, x): return NotImplemented   
    7070    def calculate_ER(self): return NotImplemented   
     71    def calculate_VR(self): return NotImplemented  
    7172    def evalDistribution(self, qdist): 
    7273        """ 
  • sansmodels/src/sans/models/MultiplicationModel.py

    rccb7363 re08bd5b  
    157157        value = self.params['volfraction'] 
    158158        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) 
    160162             
    161163             
Note: See TracChangeset for help on using the changeset viewer.