[Yt-svn] commit/cookbook: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Mon Jun 6 18:25:29 PDT 2011
2 new changesets in cookbook:
http://bitbucket.org/yt_analysis/cookbook/changeset/271aa7fee11e/
changeset: 271aa7fee11e
branches:
user: brittonsmith
date: 2011-06-07 00:06:15
summary: Fixed light ray example again.
affected #: 1 file (62 bytes)
--- a/recipes/make_light_ray.py Mon Jun 06 18:03:10 2011 -0400
+++ b/recipes/make_light_ray.py Mon Jun 06 18:06:15 2011 -0400
@@ -33,14 +33,11 @@
# use either the full halo list or the filtered list made after calling make_profiles.
halo_list = 'filtered'
-# The path to the output file.
-data_filename = 'lightray.h5'
-
# 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,
solution_filename='lightraysolution.txt',
- data_filename=data_filename,
+ data_filename='lightray.h5',
fields=['Temperature', 'Density'],
get_nearest_galaxy=True,
halo_profiler_kwargs=halo_profiler_kwargs,
http://bitbucket.org/yt_analysis/cookbook/changeset/6a024d972d18/
changeset: 6a024d972d18
branches:
user: brittonsmith
date: 2011-06-07 02:19:36
summary: Added to light ray example.
affected #: 1 file (393 bytes)
--- a/recipes/make_light_ray.py Mon Jun 06 18:06:15 2011 -0400
+++ b/recipes/make_light_ray.py Mon Jun 06 20:19:36 2011 -0400
@@ -22,13 +22,19 @@
'TotalMassMsun':1},
'halo_list_file': 'HopAnalysis.out'}
# This is a list of actions we want the HaloProfiler to perform.
-# Note that each list item (only one item in this example) is a dictionary
-# with the following three entries: 'function', 'args', and 'kwargs'.
+# Note that each list item is a dictionary with the following three
+# entries: 'function', 'args', and 'kwargs'.
# These are the function to be called, the arguments to that function, and
# any keyword arguments.
halo_profiler_actions = [{'function': make_profiles,
'args': None,
- 'kwargs': {'filename': 'VirializedHalos.out'}}]
+ 'kwargs': {'filename': 'VirializedHalos.out'}},
+ {'function': add_halo_filter,
+ 'args': VirialFilter,
+ 'kwargs': {'overdensity_field': 'ActualOverdensity',
+ 'virial_overdensity': 200,
+ 'virial_filters': [['TotalMassMsun','>=','1e14']],
+ 'virial_quantities': ['TotalMassMsun','RadiusMpc']}}]
# This option can only be 'all' or 'filtered' and tells the HaloProfiler to
# use either the full halo list or the filtered list made after calling make_profiles.
halo_list = 'filtered'
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