[Yt-svn] commit/cookbook: brittonsmith: Updated light ray recipe.
Bitbucket
commits-noreply at bitbucket.org
Tue Jun 7 08:48:37 PDT 2011
1 new changeset in cookbook:
http://bitbucket.org/yt_analysis/cookbook/changeset/1282c7be70c3/
changeset: 1282c7be70c3
branches:
user: brittonsmith
date: 2011-06-07 17:48:31
summary: Updated light ray recipe.
affected #: 1 file (172 bytes)
--- a/recipes/make_light_ray.py Mon Jun 06 20:19:36 2011 -0400
+++ b/recipes/make_light_ray.py Tue Jun 07 11:48:31 2011 -0400
@@ -12,7 +12,7 @@
# minimum number of datasets.
lr = LightRay(par_file, 0.0, 0.1, use_minimum_datasets=True)
-# The next three variable are used when get_nearest_galaxy is set to True.
+# The next four variables are used when get_nearest_galaxy is set to True.
# This option will calculate the distance and mass of the halo nearest to
# each element of the ray.
# The light ray tool accomplishes this by using the HaloProfiler.
@@ -39,6 +39,9 @@
# use either the full halo list or the filtered list made after calling make_profiles.
halo_list = 'filtered'
+# This is the name of the field from the halo list that represents the halo mass.
+halo_mass_field = 'TotalMassMsun_200'
+
# Make the ray and get the Density and Temperature fields, the nearest galaxy information, and
# the line of sight velocity.
lr.make_light_ray(seed=8675309,
@@ -49,4 +52,5 @@
halo_profiler_kwargs=halo_profiler_kwargs,
halo_profiler_actions=halo_profiler_actions,
halo_list=halo_list,
+ halo_mass_field=halo_mass_field,
get_los_velocity=True)
Repository URL: https://bitbucket.org/yt_analysis/cookbook/
--
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