ytree.arbor.arbor.load¶
-
ytree.arbor.arbor.
load
(filename, method=None)¶ Load an Arbor, determine the type automatically.
- filename : string
- Input filename.
- method : optional, string
- The type of Arbor to be loaded. Existing types are: ConsistentTrees, Rockstar, TreeFarm, YTree. If not given, the type will be determined based on characteristics of the input file.
Arbor
>>> import ytree >>> # saved Arbor >>> a = ytree.load("arbor/arbor.h5") >>> # consistent-trees output >>> a = ytree.load("rockstar_halos/trees/tree_0_0_0.dat") >>> # Rockstar catalogs >>> a = ytree.load("rockstar_halos/out_0.list") >>> # TreeFarm catalogs >>> a = ytree.load("my_halos/fof_subhalo_tab_025.0.h5")