Changeset 720 for trunk/src/common.py

Show
Ignore:
Timestamp:
03/02/10 11:37:54 (2 years ago)
Author:
apdavison
Message:

Fixed an amazingly stupid bug when using the set() function to set a parameter to zero. I can't believe this bug has been around this long. Thanks to Lyle Muller for pointing this out.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common.py

    r713 r720  
    365365    giving the parameter name, in which case val is the parameter value. 
    366366    """ 
    367     if val: 
     367    if val is not None: 
    368368        param = {param:val} 
    369369    if not hasattr(cells, '__len__'):