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

Bitbucket commits-noreply at bitbucket.org
Sun Jul 15 15:37:14 PDT 2012


3 new commits in yt:


https://bitbucket.org/yt_analysis/yt/changeset/0868acbbd6f5/
changeset:   0868acbbd6f5
branch:      yt
user:        samskillman
date:        2012-07-13 01:49:51
summary:     default for num_threads should be 0, not None.  0 defaults to using the env var OMP_NUM_THREADS, which if un-defined is to use the number of cores available.
affected #:  1 file

diff -r d2fc7a6bd11a4d0a2fb930cf79b6125225beb595 -r 0868acbbd6f503d31ca5b2e1f2138ae1c82b09b0 yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -352,7 +352,7 @@
         return self.volume.initialize_source()
 
     def snapshot(self, fn = None, clip_ratio = None, double_check = False,
-                 num_threads = None):
+                 num_threads = 0):
         r"""Ray-cast the camera.
 
         This method instructs the camera to take a snapshot -- i.e., call the ray



https://bitbucket.org/yt_analysis/yt/changeset/d031b35193fc/
changeset:   d031b35193fc
branch:      yt
user:        samskillman
date:        2012-07-13 01:57:35
summary:     Set to 0 for the other snapshots.  duh.
affected #:  1 file

diff -r 0868acbbd6f503d31ca5b2e1f2138ae1c82b09b0 -r d031b35193fc904d3cbc50ab8d193b6c81c3a0e1 yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -758,7 +758,7 @@
         return image
 
     def snapshot(self, fn = None, clip_ratio = None, double_check = False,
-                 num_threads = None, clim = None):
+                 num_threads = 0, clim = None):
         r"""Ray-cast the camera.
 
         This method instructs the camera to take a snapshot -- i.e., call the ray
@@ -1617,7 +1617,7 @@
                 write_image(im, fn)
 
     def snapshot(self, fn = None, clip_ratio = None, double_check = False,
-                 num_threads = None):
+                 num_threads = 0):
 
         if num_threads is None:
             num_threads=get_num_threads()



https://bitbucket.org/yt_analysis/yt/changeset/6ff9d57233d0/
changeset:   6ff9d57233d0
branch:      yt
user:        MatthewTurk
date:        2012-07-16 00:37:13
summary:     Merged in samskillman/yt (pull request #203)
affected #:  1 file

diff -r 2e8c4d3dfd2f715fb864779973c7eddae6ad2dd5 -r 6ff9d57233d09188809b502635d01ae3831e9bd6 yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -352,7 +352,7 @@
         return self.volume.initialize_source()
 
     def snapshot(self, fn = None, clip_ratio = None, double_check = False,
-                 num_threads = None):
+                 num_threads = 0):
         r"""Ray-cast the camera.
 
         This method instructs the camera to take a snapshot -- i.e., call the ray
@@ -758,7 +758,7 @@
         return image
 
     def snapshot(self, fn = None, clip_ratio = None, double_check = False,
-                 num_threads = None, clim = None):
+                 num_threads = 0, clim = None):
         r"""Ray-cast the camera.
 
         This method instructs the camera to take a snapshot -- i.e., call the ray
@@ -1617,7 +1617,7 @@
                 write_image(im, fn)
 
     def snapshot(self, fn = None, clip_ratio = None, double_check = False,
-                 num_threads = None):
+                 num_threads = 0):
 
         if num_threads is None:
             num_threads=get_num_threads()

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