[yt-svn] commit/yt: 4 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Sep 21 11:49:42 PDT 2015
4 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/df1604093da0/
Changeset: df1604093da0
Branch: yt
User: jisuoqing
Date: 2015-09-14 04:14:37+00:00
Summary: parameter "disparity" for stereo-lens can now be passed in
Affected #: 1 file
diff -r fceb5ab0e3c639902f1d00e9ad6413367fd8fe27 -r df1604093da0244268a10809ba634e52a8535b7c yt/visualization/volume_rendering/lens.py
--- a/yt/visualization/volume_rendering/lens.py
+++ b/yt/visualization/volume_rendering/lens.py
@@ -263,6 +263,7 @@
def __init__(self):
super(StereoPerspectiveLens, self).__init__()
self.expand_factor = 1.5
+ self.disparity = 0.
def new_image(self, camera):
self.current_image = ImageArray(
@@ -279,7 +280,8 @@
# self.front_center += self.expand_factor*dl
# self.back_center -= dl
- self.disparity = camera.width[0] / 2.e3
+ if self.disparity == 0:
+ self.disparity = camera.width[0] / 2.e3
if render_source.zbuffer is not None:
image = render_source.zbuffer.rgba
@@ -644,7 +646,8 @@
self.set_viewpoint(camera)
def _get_sampler_params(self, camera, render_source):
- self.disparity = camera.width[0] / 1000.
+ if self.disparity == 0:
+ self.disparity = camera.width[0] / 1000.
single_resolution_x = np.floor(camera.resolution[0])/2
px = np.linspace(-np.pi, np.pi, single_resolution_x, endpoint=True)[:,None]
https://bitbucket.org/yt_analysis/yt/commits/c56bc5d44a79/
Changeset: c56bc5d44a79
Branch: yt
User: jisuoqing
Date: 2015-09-14 04:22:46+00:00
Summary: Typo fix
Affected #: 1 file
diff -r df1604093da0244268a10809ba634e52a8535b7c -r c56bc5d44a794406304073caced86e22c82b51bf yt/visualization/volume_rendering/lens.py
--- a/yt/visualization/volume_rendering/lens.py
+++ b/yt/visualization/volume_rendering/lens.py
@@ -263,7 +263,7 @@
def __init__(self):
super(StereoPerspectiveLens, self).__init__()
self.expand_factor = 1.5
- self.disparity = 0.
+ self.disparity = None
def new_image(self, camera):
self.current_image = ImageArray(
@@ -280,7 +280,7 @@
# self.front_center += self.expand_factor*dl
# self.back_center -= dl
- if self.disparity == 0:
+ if self.disparity == None:
self.disparity = camera.width[0] / 2.e3
if render_source.zbuffer is not None:
@@ -637,7 +637,7 @@
super(StereoSphericalLens, self).__init__()
self.radius = 1.0
self.center = None
- self.disparity = 0.
+ self.disparity = None
self.rotation_matrix = np.eye(3)
def setup_box_properties(self, camera):
@@ -646,7 +646,7 @@
self.set_viewpoint(camera)
def _get_sampler_params(self, camera, render_source):
- if self.disparity == 0:
+ if self.disparity == None:
self.disparity = camera.width[0] / 1000.
single_resolution_x = np.floor(camera.resolution[0])/2
https://bitbucket.org/yt_analysis/yt/commits/71c64ed8de1c/
Changeset: 71c64ed8de1c
Branch: yt
User: jisuoqing
Date: 2015-09-14 19:42:06+00:00
Summary: Minor change
Affected #: 1 file
diff -r c56bc5d44a794406304073caced86e22c82b51bf -r 71c64ed8de1caa22a0ffcccc368e4536f19a4ff6 yt/visualization/volume_rendering/lens.py
--- a/yt/visualization/volume_rendering/lens.py
+++ b/yt/visualization/volume_rendering/lens.py
@@ -280,7 +280,7 @@
# self.front_center += self.expand_factor*dl
# self.back_center -= dl
- if self.disparity == None:
+ if self.disparity is None:
self.disparity = camera.width[0] / 2.e3
if render_source.zbuffer is not None:
@@ -646,7 +646,7 @@
self.set_viewpoint(camera)
def _get_sampler_params(self, camera, render_source):
- if self.disparity == None:
+ if self.disparity is None:
self.disparity = camera.width[0] / 1000.
single_resolution_x = np.floor(camera.resolution[0])/2
https://bitbucket.org/yt_analysis/yt/commits/61a5f08c0ef1/
Changeset: 61a5f08c0ef1
Branch: yt
User: ngoldbaum
Date: 2015-09-21 18:49:33+00:00
Summary: Merged in jisuoqing/yt (pull request #1746)
[BUGFIX] parameter "disparity" for stereo-type lenses can now be passed in
Affected #: 1 file
diff -r 767fa44cb5642b05fcc67711f6a23d4e7255a441 -r 61a5f08c0ef1e364c11f8b4ee36c3751e5796a34 yt/visualization/volume_rendering/lens.py
--- a/yt/visualization/volume_rendering/lens.py
+++ b/yt/visualization/volume_rendering/lens.py
@@ -263,6 +263,7 @@
def __init__(self):
super(StereoPerspectiveLens, self).__init__()
self.expand_factor = 1.5
+ self.disparity = None
def new_image(self, camera):
self.current_image = ImageArray(
@@ -279,7 +280,8 @@
# self.front_center += self.expand_factor*dl
# self.back_center -= dl
- self.disparity = camera.width[0] / 2.e3
+ if self.disparity is None:
+ self.disparity = camera.width[0] / 2.e3
if render_source.zbuffer is not None:
image = render_source.zbuffer.rgba
@@ -635,7 +637,7 @@
super(StereoSphericalLens, self).__init__()
self.radius = 1.0
self.center = None
- self.disparity = 0.
+ self.disparity = None
self.rotation_matrix = np.eye(3)
def setup_box_properties(self, camera):
@@ -644,7 +646,8 @@
self.set_viewpoint(camera)
def _get_sampler_params(self, camera, render_source):
- self.disparity = camera.width[0] / 1000.
+ if self.disparity is None:
+ self.disparity = camera.width[0] / 1000.
single_resolution_x = np.floor(camera.resolution[0])/2
px = np.linspace(-np.pi, np.pi, single_resolution_x, endpoint=True)[:,None]
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