[Yt-svn] commit/yt: samskillman: Removing some print statements and mylog.debugs that aren't useful.

Bitbucket commits-noreply at bitbucket.org
Thu Sep 1 12:26:04 PDT 2011


1 new changeset in yt:

http://bitbucket.org/yt_analysis/yt/changeset/e4727850696c/
changeset:   e4727850696c
branch:      yt
user:        samskillman
date:        2011-09-01 21:25:48
summary:     Removing some print statements and mylog.debugs that aren't useful.
affected #:  1 file (67 bytes)

--- a/yt/utilities/amr_kdtree/amr_kdtree.py	Wed Aug 31 19:26:35 2011 -0600
+++ b/yt/utilities/amr_kdtree/amr_kdtree.py	Thu Sep 01 13:25:48 2011 -0600
@@ -261,7 +261,7 @@
         self.pf = pf
         self._id_offset = pf.h.grids[0]._id_offset
         if nprocs > len(pf.h.grids):
-            print('Parallel rendering requires that the number of \n \
+            mylog.info('Parallel rendering requires that the number of \n \
             grids in the dataset is greater or equal to the number of \n \
             processors.  Reduce number of processors.')
             raise(KeyError)
@@ -305,12 +305,10 @@
         vol_needed = na.prod(self.domain_right_edge-self.domain_left_edge)
 
         for i in range(self.pf.hierarchy.max_level):
-            print 'Examining Level %i' % i
             root_l_data = na.clip(na.array([grid.LeftEdge for grid in root_grids]),self.domain_left_edge, self.domain_right_edge)
             root_r_data = na.clip(na.array([grid.RightEdge for grid in root_grids]),self.domain_left_edge, self.domain_right_edge)
             
             vol = na.prod(root_r_data-root_l_data,axis=1).sum()
-            print vol, vol_needed
             if vol >= vol_needed:
                 covering_grids = root_grids
                 root_grids = levels.next()
@@ -329,7 +327,7 @@
         self.my_l_corner = self.domain_left_edge
         self.my_r_corner = self.domain_right_edge
 
-        mylog.info('Making kd tree from le %s to %s'% (self.domain_left_edge, self.domain_right_edge))
+        #mylog.info('Making kd tree from le %s to %s'% (self.domain_left_edge, self.domain_right_edge))
         
         root_l_data = na.array([grid.LeftEdge for grid in root_grids])
         root_r_data = na.array([grid.RightEdge for grid in root_grids])
@@ -361,7 +359,7 @@
 
         # Calculate the total volume spanned by the tree
         self.volume = self.count_volume()
-        mylog.debug('Cost is %d' % self.total_cost)
+        #mylog.debug('Cost is %d' % self.total_cost)
         mylog.debug('Volume is %e' % self.volume) 
 
         self.current_saved_grids = []
@@ -1039,7 +1037,7 @@
             except:
                 rounds = i-1
         for thisround in range(rounds,0,-1):
-            print my_rank, 'my node', my_node_id
+            #print my_rank, 'my node', my_node_id
             parent = my_node.parent
             #print parent['split_ax'], parent['split_pos']
             if viewpoint[parent.split_ax] <= parent.split_pos:
@@ -1049,7 +1047,7 @@
                 front = parent.left_child
                 back = parent.right_child 
 
-            mylog.debug('front owner %i back owner %i parent owner %i'%( front.owner, back.owner, parent.owner))
+            # mylog.debug('front owner %i back owner %i parent owner %i'%( front.owner, back.owner, parent.owner))
                 
             # Send the images around
             if front.owner == my_rank:

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