[Yt-svn] commit/yt: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Wed Nov 9 14:44:49 PST 2011
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/changeset/912592c6f81a/
changeset: 912592c6f81a
branch: yt
user: samskillman
date: 2011-11-09 23:44:02
summary: Turning exponential move_to off by default, and adding a few fixes for when final_width is not specified.
affected #: 1 file
diff -r c83c0ec05170fe71d142ca6c16230a99ce06a37f -r 912592c6f81a254e2e4927189e7ee1b45539ecac yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -414,7 +414,7 @@
self.zoom(f)
yield self.snapshot()
- def move_to(self, final, n_steps, final_width=None, exponential=True):
+ def move_to(self, final, n_steps, final_width=None, exponential=False):
r"""Loop over a look_at
This will yield `n_steps` snapshots until the current view has been
@@ -448,6 +448,8 @@
# front/back, left/right, top/bottom
final_zoom = final_width/na.array(self.width)
dW = final_zoom**(1.0/n_steps)
+ else:
+ dW = 1.0
position_diff = (na.array(final)/self.center)*1.0
dx = position_diff**(1.0/n_steps)
else:
@@ -456,6 +458,8 @@
width = na.array([final_width, final_width, final_width])
# front/back, left/right, top/bottom
dW = (1.0*final_width-na.array(self.width))/n_steps
+ else:
+ dW = 1.0
dx = (na.array(final)-self.center)*1.0/n_steps
for i in xrange(n_steps):
if exponential:
https://bitbucket.org/yt_analysis/yt/changeset/c038dd1e297a/
changeset: c038dd1e297a
branch: yt
user: samskillman
date: 2011-11-09 23:44:30
summary: Merging.
affected #: 1 file
diff -r 912592c6f81a254e2e4927189e7ee1b45539ecac -r c038dd1e297af8267633def26899d7c7b2c1d671 yt/mods.py
--- a/yt/mods.py
+++ b/yt/mods.py
@@ -38,9 +38,15 @@
from yt.funcs import *
from yt.utilities.logger import ytLogger as mylog
from yt.utilities.performance_counters import yt_counters, time_function
-from yt.config import ytcfg
+from yt.config import ytcfg, ytcfgDefaults
import yt.utilities.physical_constants as physical_constants
+from yt.utilities.logger import level as __level
+if __level >= int(ytcfgDefaults["loglevel"]):
+ # This won't get displayed.
+ mylog.debug("Turning off NumPy error reporting")
+ na.seterr(all = 'ignore')
+
from yt.data_objects.api import \
BinnedProfile1D, BinnedProfile2D, BinnedProfile3D, \
data_object_registry, \
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