[Yt-svn] yt-commit r1276 - in trunk/yt: . lagos/fof lagos/hop
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Thu Apr 23 10:17:36 PDT 2009
Author: mturk
Date: Thu Apr 23 10:17:36 2009
New Revision: 1276
URL: http://yt.spacepope.org/changeset/1276
Log:
Removed old files that have been obsoleted by HaloFinding.py, fixed
commands.py, and intentionally broke compatibility with the removal of
yt.lagos.hop in yt/mods.py.
Removed:
trunk/yt/lagos/fof/FOF_Output.py
trunk/yt/lagos/hop/HopOutput.py
trunk/yt/lagos/hop/SS_HopOutput.py
Modified:
trunk/yt/commands.py
trunk/yt/mods.py
Modified: trunk/yt/commands.py
==============================================================================
--- trunk/yt/commands.py (original)
+++ trunk/yt/commands.py Thu Apr 23 10:17:36 2009
@@ -190,11 +190,9 @@
${cmd_option_list}
"""
pf = _fix_pf(arg)
- sp = pf.h.sphere((pf["DomainLeftEdge"] + pf["DomainRightEdge"])/2.0,
- pf['unitary'])
kwargs = {'dm_only' : opts.dm_only}
if opts.threshold is not None: kwargs['threshold'] = opts.threshold
- hop_list = hop.HopList(sp, **kwargs)
+ hop_list = HaloFinder(sp, **kwargs)
if opts.output is None: fn = "%s.hop" % pf
else: fn = opts.output
hop_list.write_out(fn)
Modified: trunk/yt/mods.py
==============================================================================
--- trunk/yt/mods.py (original)
+++ trunk/yt/mods.py Thu Apr 23 10:17:36 2009
@@ -30,7 +30,6 @@
# First module imports
import yt.lagos as lagos
-import yt.lagos.hop as hop
import yt.raven as raven
import yt.fido as fido
import numpy as na
@@ -169,14 +168,3 @@
__pf = EnzoStaticOutput(__pf)
mylog.info("Obtained parameter file %s", __pf)
return __pf
-
-def hop_plot(my_pf = None):
- if my_pf is None: my_pf = _get_current_pf()
- pc = PlotCollection(my_pf, center=[0.5,0.5,0.5])
- center = (my_pf["DomainRightEdge"]-my_pf["DomainLeftEdge"])/2.0
- hop_output = hop.HopList(my_pf.h.sphere(center, 1.0/my_pf["1"]))
- hop_output.write_out("%s.hop" % my_pf)
- for ax in range(3):
- pc.add_projection("Density", ax).add_callback(
- HopCircleCallback(hop_output, ax))
- pc.save("%s_hop" % my_pf)
More information about the yt-svn
mailing list