[yt-svn] commit/yt: brittonsmith: Halo profiler now accepts either path to a dataset or a StaticOutput.
Bitbucket
commits-noreply at bitbucket.org
Fri Jun 8 08:11:03 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/08f29a9cec42/
changeset: 08f29a9cec42
branch: yt
user: brittonsmith
date: 2012-06-08 17:10:55
summary: Halo profiler now accepts either path to a dataset or a StaticOutput.
affected #: 1 file
diff -r c18d5d3b7fafa3a64cbb65d650ac9fed2e751497 -r 08f29a9cec42435bb0581a2059b4f1c7abd6c8c5 yt/analysis_modules/halo_profiler/multi_halo_profiler.py
--- a/yt/analysis_modules/halo_profiler/multi_halo_profiler.py
+++ b/yt/analysis_modules/halo_profiler/multi_halo_profiler.py
@@ -42,6 +42,8 @@
centering_registry
from yt.data_objects.field_info_container import \
add_field
+from yt.data_objects.static_output import \
+ StaticOutput
from yt.utilities.parallel_tools.parallel_analysis_interface import \
ParallelAnalysisInterface, \
@@ -275,7 +277,10 @@
return None
# Create dataset object.
- self.pf = load(self.dataset)
+ if isinstance(self.dataset, StaticOutput):
+ self.pf = self.dataset
+ else:
+ self.pf = load(self.dataset)
self.pf.h
# Figure out what max radius to use for profiling.
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