[yt-svn] commit/yt: MatthewTurk: Merged in ngoldbaum/yt (pull request #2511)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Feb 16 12:16:17 PST 2017
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/0e90715fb16b/
Changeset: 0e90715fb16b
Branch: yt
User: MatthewTurk
Date: 2017-02-16 20:16:11+00:00
Summary: Merged in ngoldbaum/yt (pull request #2511)
Don't show a progress bar for collections with only one element
Approved-by: chummels
Approved-by: Kacper Kowalik
Approved-by: Matt Turk
Affected #: 1 file
diff -r fb62830c163dff615a41314214a81e4e784155b1 -r 0e90715fb16b38b466fafbcf5d8d726ada22263a yt/funcs.py
--- a/yt/funcs.py
+++ b/yt/funcs.py
@@ -400,7 +400,8 @@
maxval = max(maxval, 1)
from yt.config import ytcfg
if ytcfg.getboolean("yt", "suppressStreamLogging") or \
- ytcfg.getboolean("yt", "__withintesting"):
+ ytcfg.getboolean("yt", "__withintesting") or \
+ maxval == 1: \
return DummyProgressBar()
elif ytcfg.getboolean("yt", "__parallel"):
# If parallel is True, update progress on root only.
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list