Changeset 91db958 in sasview for Invariant


Ignore:
Timestamp:
Jan 21, 2010 2:58:55 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
1a2dc10
Parents:
deeba75
Message:

return properly for v, s when no parameter is sent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Invariant/invariant.py

    r76c1727 r91db958  
    940940        """ 
    941941        if contrast is None or porod_const is None: 
    942             return  
     942            return None 
    943943        #Check whether we have Q star 
    944944        if self._qstar is None: 
     
    973973        """ 
    974974        if contrast is None: 
    975             return  
     975            return None 
    976976        if contrast < 0: 
    977977            raise ValueError, "contrast must be greater than zero"   
     
    10331033        """ 
    10341034        if contrast is None: 
    1035             return  
     1035            return None, None 
    10361036        self._qstar, self._qstar_err = self.get_qstar_with_error() 
    10371037         
     
    10681068        """ 
    10691069        if contrast is None or porod_const is None: 
    1070             return  
     1070            return None, None 
    10711071        v, dv = self.get_volume_fraction_with_error(contrast) 
    10721072        self._qstar, self._qstar_err = self.get_qstar_with_error() 
Note: See TracChangeset for help on using the changeset viewer.