[yt-svn] commit/yt: sskory: Adding a pbar for boolean data container creation.
Bitbucket
commits-noreply at bitbucket.org
Mon Feb 13 13:56:36 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/c08348acdbd3/
changeset: c08348acdbd3
branch: yt
user: sskory
date: 2012-02-13 22:53:01
summary: Adding a pbar for boolean data container creation.
affected #: 1 file
diff -r 3cb64c09895e4098d51f5072cf1d3fb7122ebb5a -r c08348acdbd32f51e96a2a815ade4ed941f2f4e6 yt/data_objects/data_containers.py
--- a/yt/data_objects/data_containers.py
+++ b/yt/data_objects/data_containers.py
@@ -3692,7 +3692,8 @@
def _make_overlaps(self):
# Using the processed cut_masks, we'll figure out what grids
# are left in the hybrid region.
- for region in self._all_regions:
+ pbar = get_pbar("Building boolean", len(self._all_regions))
+ for i, region in enumerate(self._all_regions):
try:
region._get_list_of_grids()
alias = region
@@ -3719,6 +3720,8 @@
# Some of local is in overall
self._some_overlap.append(grid)
continue
+ pbar.update(i)
+ pbar.finish()
def __repr__(self):
# We'll do this the slow way to be clear what's going on
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