linefinder.galaxy_link module¶
Means to associate particles with galaxies and halos at any given time.
@author: Zach Hafen @contact: zachary.h.hafen@gmail.com @status: Development
-
class
linefinder.galaxy_link.
ParticleTrackGalaxyLinker
(out_dir, tag, main_mt_halo_id, mtree_halos_index=None, halo_file_tag='smooth', halo_data_dir=<object object>, ptracks_tag=<object object>, galaxy_cut=4.0, length_scale='Rstar0.5', mt_length_scale='sRstar0.5', ids_to_return=['gal_id', 'mt_gal_id', '1.0_Rvir', '2.0_Rvir', 'd_other_gal', 'd_other_gal_scaled'], ids_with_supplementary_data=[], supplementary_data_keys=[], minimum_criteria='n_star', minimum_value=10, n_processors=1)[source]¶ Bases:
object
Find the association with galaxies for entire particle tracks.
-
get_galaxy_identification_loop
()[source]¶ Loop over all snapshots and identify the galaxy in each.
- Modifies:
- self.ptrack_gal_ids (dict) : Where the galaxy IDs are stored.
-
get_galaxy_identification_loop_jug
()[source]¶ Loop over all snapshots and identify the galaxy in each. Use Jug for parallelism.
- Modifies:
- self.ptrack_gal_ids (dict) : Where the galaxy IDs are stored.
-
get_galaxy_identification_loop_parallel
()[source]¶ Loop over all snapshots and identify the galaxy in each.
- Modifies:
- self.ptrack_gal_ids (dict) : Where the galaxy IDs are stored.
-