linefinder.utils.file_management module

Simple functions and variables for easily accessing common files and choices of parameters.

@author: Zach Hafen @contact: zachary.h.hafen@gmail.com @status: Development

class linefinder.utils.file_management.FileManager(project=None)[source]

Bases: object

get_halo_dir(sim_name)[source]
get_linefinder_analysis_defaults(tag_tail, sim_name='m12i', ahf_index=600, ids_tag_tail=None, ptracks_tag_tail=None, galdef='')[source]

Standard defaults for linefinder analysis routines.

Parameters:
  • tag_tail (str) – The second half of the tag, after the simulation name.
  • sim_name (str) – Name of the simulation to use.
Returns:

Commonly used default dictionary.

Return type:

defaults (dict)

get_linefinder_analysis_defaults_and_variations(tag_tail, default_sim_name='m12i', sim_names=['m12i', 'm12m', 'm12f'], *args, **kwargs)[source]

Standard defaults and variations for linefinder analysis routines.

Parameters:
  • tag_tail (str) – The second half of the tag, after the simulation name.
  • default_sim_name (str) – Name of the simulation that’s the “default”.
  • sim_names (list of strs) – What simulations to include.
  • **kwargs (*args,) –

    Other arguments passed to self.get_linefinder_analysis_defaults() and self.get_linefinder_analysis_variations() and

Returns:

Commonly used variations dictionary.

Return type:

variations (dict of dicts)

get_linefinder_analysis_variations(tag_tail, default_sim_name='m12i', sim_names=['m12i', 'm12m', 'm12f', 'm12imd'], *args, **kwargs)[source]

Standard default variations for linefinder analysis routines.

Parameters:
  • tag_tail (str) – The second half of the tag, after the simulation name.
  • default_sim_name (str) – Name of the simulation that’s the “default”.
  • sim_names (list of strs) – What simulations to include.
  • **kwargs (*args,) –

    Other arguments passed to self.get_linefinder_analysis_defaults()

Returns:

Commonly used variations dictionary.

Return type:

variations (dict of dicts)

get_linefinder_dir(sim_name, subdir='data')[source]
get_metafile_dir(sim_name)[source]
get_project_figure_dir()[source]
get_project_presentation_dir()[source]
get_sim_dir(sim_name)[source]
get_sim_subdir(sim_name, physics=None, resolution=None)[source]