[yt-dev] Fwd: [yt_analysis/yt] Load Text Halos (pull request #192)

Nathan Goldbaum nathan12343 at gmail.com
Tue Jul 10 15:32:28 PDT 2012


This is in response to the discussion on the list about halos.

-------- Original Message --------
Subject: 	[yt_analysis/yt] Load Text Halos (pull request #192)
Date: 	Tue, 10 Jul 2012 22:25:16 -0000
From: 	Stephen Skory <pullrequests-noreply at bitbucket.org>
To: 	goldbaum at ucolick.org



A new pull request has been opened by Stephen Skory.

sskory/yt has changes to be pulled into yt_analysis/yt.

https://bitbucket.org/yt_analysis/yt/pull-request/192/load-text-halos

Title: Load Text Halos

This adds the ability to read in simple text files listing the locations and radii of halos, with optional supplementary data fields. For now the supplementary data fields are assumed to be floats, but eventually (hopefully) this will be changed so that string/integer/other fields can be read in. Perhaps with a re-write/upgrade of halo machinery. The supplementary data is accessed off a halo object using the .supp dict

{{{
#!python
from yt.analysis_modules.halo_finding.api import *
h2 = LoadTextHaloes(pf, "Halos.out", {'x':7,'y':8,'z':9,'r':13, 'm':1})
h2[0].supp['m']
# 1357151571000000.0
h2[0].total_mass()
# 1706602465579130.2
}}}

The first mass is read from the file and is what the halo finder finds; the second is the total DM mass contained in the sphere, which is why the latter is bigger.

The x, y, z, and r columns are required, of course.

Changes to be pulled:



--
This is an issue notification from bitbucket.org.
You are receiving this either because you are the participating
in a pull request, or you are following it.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20120710/492fa747/attachment.htm>


More information about the yt-dev mailing list