Changeset 1654

Show
Ignore:
Timestamp:
03/03/10 13:39:19 (5 months ago)
Author:
mturk
Message:

Adding a check to the progressbar to make the maxval == 1 if it's 0. This
should eliminate a bunch of problems, but also hide some others. The secret is
that if you are relying on the progressbar to report an empty iterable, bad
idea!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/yt/funcs.py

    r1635 r1654  
    305305    and a *maxval*. 
    306306    """ 
     307    maxval = max(maxval, 1) 
    307308    from yt.config import ytcfg 
    308309    if ytcfg.getboolean("yt","inGui"):