[yt-svn] commit/yt: chummels: Updating single dataset light ray cookbook recipe to use domain edges instead of assuming domain edges were unitary.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Jul 22 17:30:02 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/2d8f16030497/
Changeset: 2d8f16030497
Branch: yt
User: chummels
Date: 2016-07-22 23:27:27+00:00
Summary: Updating single dataset light ray cookbook recipe to use domain edges instead of assuming domain edges were unitary.
Affected #: 1 file
diff -r 1b22ba1e477b01ab332741999a1ef5143eec00ce -r 2d8f160304978d5fe9836fa54c80db779bf92f8e doc/source/cookbook/single_dataset_light_ray.py
--- a/doc/source/cookbook/single_dataset_light_ray.py
+++ b/doc/source/cookbook/single_dataset_light_ray.py
@@ -8,9 +8,12 @@
# With a single dataset, a start_position and
# end_position or trajectory must be given.
-# Trajectory should be given as (r, theta, phi)
-lr.make_light_ray(start_position=[0., 0., 0.],
- end_position=[1., 1., 1.],
+# These positions can be defined as xyz coordinates,
+# but here we just use the two opposite corners of the
+# simulation box. Alternatively, trajectory should
+# be given as (r, theta, phi)
+lr.make_light_ray(start_position=ds.domain_left_edge,
+ end_position=ds.domain_right_edge,
solution_filename='lightraysolution.txt',
data_filename='lightray.h5',
fields=['temperature', 'density'])
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