[yt-svn] commit/yt: 2 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Feb 16 12:16:18 PST 2017


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/79f1a996c60b/
Changeset:   79f1a996c60b
Branch:      yt
User:        ngoldbaum
Date:        2017-02-01 22:10:10+00:00
Summary:     Don't show a progress bar for collections with only one element
Affected #:  1 file

diff -r 22ce92624c6f5d630852e58f427262dd516f3d82 -r 79f1a996c60b521bd556f2bc2000bd26f139c321 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.


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