Changeset 2373


Ignore:
Timestamp:
Feb 19, 2010 4:12:48 PM (10 years ago)
Author:
jwatson
Message:

Allowing inputs to rhosetters to be either expressions or floats, not just expressions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pysp/trunk/coopr/pysp/ph.py

    r2363 r2373  
    220220         variable_index = None
    221221     
    222       new_rho_value = rho_expression()
     222      new_rho_value = None
     223      if isinstance(rho_expression, float):
     224         new_rho_value = rho_expression
     225      else:
     226         new_rho_value = rho_expression()
    223227
    224228      if self._verbose is True:
Note: See TracChangeset for help on using the changeset viewer.