Hi Shankar, It works on the individual halos. You could do this with: halos[0].write_particle_list ... or you could do: for i,halo in enumerate(halos): halo.write_particle_list("halo_%08i.dat" % i) -Matt On Mon, Mar 1, 2010 at 3:21 PM, Agarwal, Shankar <sagarwal@ku.edu> wrote:
Hi,
http://yt.enzotools.org/doc/extensions/running_halofinder.html#halo-data-acc...
I get the following error while trying to access halos...
halos.write_particle_list("Hop_particle_list.dat") AttributeError: 'HOPHaloFinder' object has no attribute 'write_particle_list'
Shankar
-----Original Message----- From: yt-users-bounces@lists.spacepope.org on behalf of Stephen Skory Sent: Sun 2/28/2010 1:51 PM To: Discussion of the yt analysis package Subject: Re: [yt-users] Dealing with HOP groups
All,
3. Write a dark matter particle profiler that uses the particle positions (and not grid cells) to bin up the profile. Little computational cost but requires coding on your part.
This is already in yt, as of 1.6, see .virial_mass() or .virial_radius():
http://yt.enzotools.org/doc/extensions/running_halofinder.html#halo-data-acc...
_______________________________________________________ sskory@physics.ucsd.edu o__ Stephen Skory http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student ________________________________(_)_\(_)_______________
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org