[yt-users] Hop vs HaloProfiler

Agarwal, Shankar sagarwal at ku.edu
Thu Nov 26 12:28:26 PST 2009


Hi Stephen,

I am using the following statement...

    p.modify["hop_circles"](halos, max_number=None, annotate=True, min_size=400, max_size=100000, font_size=8, print_halo_size=True, print_halo_mass=True, width=None)


The plot is at http://drop.io/hop_circles

Why is it not printing the print_halo_mass ?
What are the options for width ?

shankar


-----Original Message-----
From: yt-users-bounces at lists.spacepope.org on behalf of Stephen Skory
Sent: Wed 11/25/2009 3:30 PM
To: Discussion of the yt analysis package
Subject: Re: [yt-users] Hop vs HaloProfiler
 
Shankar,


> from yt.mods import *
> 
> fn = "RedshiftOutput0002"
> pf = load(fn)
> halos = HaloFinder(pf)
> halos.modify["hop_circles"](self, hop_output, max_number=None, annotate=False, 
> min_size=20, max_size=10000000, font_size=8, print_halo_size=False, 
> print_halo_mass=False, width=None)
> halos.write_out("HopAnalysis.out") 

hop_circles makes a plot of hop haloes on an existing projection. You need to create the projection first. So...

...
halos = HaloFinder(pf)
pc = PlotCollection(pf)
p = pc.add_projection("Density",0)
p.modify["hop_circles"](halos, max_number=etc...)
pc.set_width(1.0, '1')
pc.save('plotname')


My advice is, when you try to use a new function, you should figure out what it's doing and what the inputs are.
For example, even if your input was formatted correctly, you haven't defined 'self' or 'hop_output' before you
use them in the function call, and it would have failed anyway. Also, 'self' is a special variable in python
that is never used as an argument of a function call.

Good luck!
 
_______________________________________________________
sskory at physics.ucsd.edu           o__  Stephen Skory
http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student
________________________________(_)_\(_)_______________
_______________________________________________
yt-users mailing list
yt-users at lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3643 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20091126/2b424127/attachment-0001.bin>


More information about the yt-users mailing list