baobab.configs package

baobab.configs.parser module

class baobab.configs.parser.BaobabConfig(user_cfg)[source]

Bases: object

Nested dictionary representing the configuration for Baobab data generation

export_log()[source]

Export the baobab log to the current working directory

classmethod from_file(user_cfg_path)[source]

Alternative constructor that accepts the path to the user-defined configuration python file :param user_cfg_path: path to the user-defined configuration python file :type user_cfg_path: str or os.path object

get_noise_kwargs(bandpass)[source]

Return the noise kwargs defined in the babobab config, e.g. for passing to the noise model for online data augmentation

Returns:
  • (dict) (A dict containing the noise kwargs to be passed to the noise) – model.
  • (str) (The bandpass to pull the noise information for)
get_survey_info(survey_info, psf_type)[source]

Fetch the camera and instrument information corresponding to the survey string identifier

interpret_kinematics_cfg()[source]

Validate the kinematics config

interpret_magnification_cfg()[source]