[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Nov 10 08:51:23 PST 2015
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/110e398b3b65/
Changeset: 110e398b3b65
Branch: yt
User: atmyers
Date: 2015-11-09 23:19:53+00:00
Summary: reduce the resolution of the images so the various_lens.py cookbook script runs faster
Affected #: 1 file
diff -r 25a0dbd51257bb3fd355338fd4594985c5963f77 -r 110e398b3b65bbdbbe97e8d7c8402875632b0d8f doc/source/cookbook/various_lens.py
--- a/doc/source/cookbook/various_lens.py
+++ b/doc/source/cookbook/various_lens.py
@@ -21,7 +21,7 @@
# Plane-parallel lens
cam = Camera(ds, lens_type='plane-parallel')
# Set the resolution of tbe final projection.
-cam.resolution = [500, 500]
+cam.resolution = [250, 250]
# Set the location of the camera to be (x=0.2, y=0.5, z=0.5)
# For plane-parallel lens, the location info along the normal_vector (here
# is x=0.2) is ignored.
@@ -39,7 +39,7 @@
# Perspective lens
cam = Camera(ds, lens_type='perspective')
-cam.resolution = [500, 500]
+cam.resolution = [250, 250]
# Standing at (x=0.2, y=0.5, z=0.5), we look at the area of x>0.2 (with some open angle
# specified by camera width) along the positive x direction.
cam.position = ds.arr([0.2, 0.5, 0.5], 'code_length')
@@ -58,7 +58,7 @@
cam = Camera(ds, lens_type='stereo-perspective')
# Set the size ratio of the final projection to be 2:1, since stereo-perspective lens
# will generate the final image with both left-eye and right-eye ones jointed together.
-cam.resolution = [1000, 500]
+cam.resolution = [500, 250]
cam.position = ds.arr([0.2, 0.5, 0.5], 'code_length')
cam.switch_orientation(normal_vector=normal_vector,
north_vector=north_vector)
@@ -73,7 +73,7 @@
# Fisheye lens
dd = ds.sphere(ds.domain_center, ds.domain_width[0] / 10)
cam = Camera(dd, lens_type='fisheye')
-cam.resolution = [500, 500]
+cam.resolution = [250, 250]
v, c = ds.find_max(field)
cam.set_position(c - 0.0005 * ds.domain_width)
cam.switch_orientation(normal_vector=normal_vector,
@@ -89,7 +89,7 @@
cam = Camera(ds, lens_type='spherical')
# Set the size ratio of the final projection to be 2:1, since spherical lens
# will generate the final image with length of 2*pi and height of pi.
-cam.resolution = [1000, 500]
+cam.resolution = [500, 250]
# Standing at (x=0.4, y=0.5, z=0.5), we look in all the radial directions
# from this point in spherical coordinate.
cam.position = ds.arr([0.4, 0.5, 0.5], 'code_length')
@@ -106,7 +106,7 @@
cam = Camera(ds, lens_type='stereo-spherical')
# Set the size ratio of the final projection to be 4:1, since spherical-perspective lens
# will generate the final image with both left-eye and right-eye ones jointed together.
-cam.resolution = [2000, 500]
+cam.resolution = [1000, 250]
cam.position = ds.arr([0.4, 0.5, 0.5], 'code_length')
cam.switch_orientation(normal_vector=normal_vector,
north_vector=north_vector)
https://bitbucket.org/yt_analysis/yt/commits/6bb90c5fb640/
Changeset: 6bb90c5fb640
Branch: yt
User: ngoldbaum
Date: 2015-11-10 16:51:14+00:00
Summary: Merged in atmyers/yt (pull request #1853)
Reduce the resolution of the images so the various_lens.py cookbook script runs faster
Affected #: 1 file
diff -r 1cd224904d442bd872f6c8969d4a12935cb7ac64 -r 6bb90c5fb64093ed15937d5cc1d9d82123112c07 doc/source/cookbook/various_lens.py
--- a/doc/source/cookbook/various_lens.py
+++ b/doc/source/cookbook/various_lens.py
@@ -21,7 +21,7 @@
# Plane-parallel lens
cam = Camera(ds, lens_type='plane-parallel')
# Set the resolution of tbe final projection.
-cam.resolution = [500, 500]
+cam.resolution = [250, 250]
# Set the location of the camera to be (x=0.2, y=0.5, z=0.5)
# For plane-parallel lens, the location info along the normal_vector (here
# is x=0.2) is ignored.
@@ -39,7 +39,7 @@
# Perspective lens
cam = Camera(ds, lens_type='perspective')
-cam.resolution = [500, 500]
+cam.resolution = [250, 250]
# Standing at (x=0.2, y=0.5, z=0.5), we look at the area of x>0.2 (with some open angle
# specified by camera width) along the positive x direction.
cam.position = ds.arr([0.2, 0.5, 0.5], 'code_length')
@@ -58,7 +58,7 @@
cam = Camera(ds, lens_type='stereo-perspective')
# Set the size ratio of the final projection to be 2:1, since stereo-perspective lens
# will generate the final image with both left-eye and right-eye ones jointed together.
-cam.resolution = [1000, 500]
+cam.resolution = [500, 250]
cam.position = ds.arr([0.2, 0.5, 0.5], 'code_length')
cam.switch_orientation(normal_vector=normal_vector,
north_vector=north_vector)
@@ -73,7 +73,7 @@
# Fisheye lens
dd = ds.sphere(ds.domain_center, ds.domain_width[0] / 10)
cam = Camera(dd, lens_type='fisheye')
-cam.resolution = [500, 500]
+cam.resolution = [250, 250]
v, c = ds.find_max(field)
cam.set_position(c - 0.0005 * ds.domain_width)
cam.switch_orientation(normal_vector=normal_vector,
@@ -89,7 +89,7 @@
cam = Camera(ds, lens_type='spherical')
# Set the size ratio of the final projection to be 2:1, since spherical lens
# will generate the final image with length of 2*pi and height of pi.
-cam.resolution = [1000, 500]
+cam.resolution = [500, 250]
# Standing at (x=0.4, y=0.5, z=0.5), we look in all the radial directions
# from this point in spherical coordinate.
cam.position = ds.arr([0.4, 0.5, 0.5], 'code_length')
@@ -106,7 +106,7 @@
cam = Camera(ds, lens_type='stereo-spherical')
# Set the size ratio of the final projection to be 4:1, since spherical-perspective lens
# will generate the final image with both left-eye and right-eye ones jointed together.
-cam.resolution = [2000, 500]
+cam.resolution = [1000, 250]
cam.position = ds.arr([0.4, 0.5, 0.5], 'code_length')
cam.switch_orientation(normal_vector=normal_vector,
north_vector=north_vector)
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