[Yt-svn] commit/yt: brittonsmith: Converted a couple print statements in transfer_functions.py to mylog.debug and

Bitbucket commits-noreply at bitbucket.org
Thu Nov 3 15:28:41 PDT 2011


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/22e5376b5f19/
changeset:   22e5376b5f19
branch:      yt
user:        brittonsmith
date:        2011-11-03 23:22:51
summary:     Converted a couple print statements in transfer_functions.py to mylog.debug and
commented out a couple print statements in VolumeIntegrator.pyx that make a lot
of noise.
affected #:  2 files

diff -r 9a49232fd7e887f2083564754c3296fe236ba891 -r 22e5376b5f1962395e63da3ce38128750acf4ea3 yt/utilities/_amr_utils/VolumeIntegrator.pyx
--- a/yt/utilities/_amr_utils/VolumeIntegrator.pyx
+++ b/yt/utilities/_amr_utils/VolumeIntegrator.pyx
@@ -357,14 +357,14 @@
                                          tf_obj.tables[i].y))
             self.field_tables[i].field_id = tf_obj.field_ids[i]
             self.field_tables[i].weight_field_id = tf_obj.weight_field_ids[i]
-            print "Field table", i, "corresponds to",
-            print self.field_tables[i].field_id,
-            print "(Weighted with ", self.field_tables[i].weight_field_id,
-            print ")"
+            #print "Field table", i, "corresponds to",
+            #print self.field_tables[i].field_id,
+            #print "(Weighted with ", self.field_tables[i].weight_field_id,
+            #print ")"
 
         for i in range(6):
             self.field_table_ids[i] = tf_obj.field_table_ids[i]
-            print "Channel", i, "corresponds to", self.field_table_ids[i]
+            #print "Channel", i, "corresponds to", self.field_table_ids[i]
             
     @cython.boundscheck(False)
     @cython.wraparound(False)


diff -r 9a49232fd7e887f2083564754c3296fe236ba891 -r 22e5376b5f1962395e63da3ce38128750acf4ea3 yt/visualization/volume_rendering/transfer_functions.py
--- a/yt/visualization/volume_rendering/transfer_functions.py
+++ b/yt/visualization/volume_rendering/transfer_functions.py
@@ -491,8 +491,8 @@
         r,g,b,a = cmap(rel)
         if alpha is None: alpha = a
         self.add_gaussian(v, w, [r,g,b,alpha])
-        print "Adding gaussian at %s with width %s and colors %s" % (
-                v, w, (r,g,b,alpha))
+        mylog.debug("Adding gaussian at %s with width %s and colors %s" % (
+                v, w, (r,g,b,alpha)))
 
     def add_layers(self, N, w=None, mi=None, ma=None, alpha = None,
                    colormap="gist_stern", col_bounds = None):
@@ -628,7 +628,7 @@
             # Now we set up the scattering
             scat = (johnson_filters[f]["Lchar"]**-4 / mscat)*anorm
             tf = TransferFunction(rho_bounds)
-            print "Adding: %s with relative scattering %s" % (f, scat)
+            mylog.debug("Adding: %s with relative scattering %s" % (f, scat))
             tf.y *= 0.0; tf.y += scat
             self.add_field_table(tf, 1, weight_field_id = 1)
             self.link_channels(i+3, i+3)

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