[yt-users] Best way to load in halos?

Stephen Skory s at skory.us
Mon Jul 9 15:09:40 PDT 2012


Hi Matt,

I've pushed a change here:

https://bitbucket.org/sskory/yt/changeset/98e4616f576d

it's basically how I described it in my earlier email.

pf = load("data0005")
halos = LoadHaloes(pf, "list.txt", {'x':0, 'y':1, 'z':2, 'r':3},
            comment = ";")

those are the only four types of columns it knows how to read right
now. That can be changed if needed. "comment" lists lines to ignore by
leading character and defaults to "#". In my limited testing all the
halo operations work. If you find a bug, let me know! If you like it,
I'll issue a PR.

-- 
Stephen Skory
s at skory.us
http://stephenskory.com/
510.621.3687 (google voice)



More information about the yt-users mailing list