rail.projects.path_funcs module
A set of utility functions to extract data for plotting from rail files
- rail.projects.path_funcs.get_ceci_nz_output_paths(project, selection, flavor, algo, classifier, summarizer)[source]
Get the paths to the file with n(z) estimates for a particualar analysis selection and flavor
- Return type:
list[str]- Parameters:
project (RailProject) – Object with information about the structure of the current project
selection (str) – Data selection in question, e.g., ‘gold’, or ‘blended’
flavor (str) – Analysis flavor in question, e.g., ‘baseline’ or ‘zCosmos’
algo (str) – Algorithm we want the estimates for, e.g., ‘knn’, ‘bpz’], etc…
classifier (str) – Algorithm we use to make tomograpic bin
summarizer (str) – Algorithm we use to go from p(z) to n(z)
- Returns:
paths – Paths to data
- Return type:
list[str]
- rail.projects.path_funcs.get_ceci_pz_model_paths(project, selection, flavor, algo=None)[source]
Get the paths to the file with pz model for a particualar analysis selection and flavor
- Return type:
list[str]- Parameters:
project (RailProject) – Object with information about the structure of the current project
selection (str) – Data selection in question, e.g., ‘gold’, or ‘blended’
flavor (str) – Analysis flavor in question, e.g., ‘baseline’ or ‘zCosmos’
algo (str | None) – Algorithm we want the estimates for, e.g., ‘knn’, ‘bpz’, etc.. None will find all the existing model files.
- Returns:
path – Path to the file in question, if it exists, otherwise None
- Return type:
str | None
- rail.projects.path_funcs.get_ceci_pz_output_path(project, selection, flavor, algo)[source]
Get the paths to the file with redshfit estimates for a particualar analysis selection and flavor
- Return type:
str|None- Parameters:
project (RailProject) – Object with information about the structure of the current project
selection (str) – Data selection in question, e.g., ‘gold’, or ‘blended’
flavor (str) – Analysis flavor in question, e.g., ‘baseline’ or ‘zCosmos’
algo (str) – Algorithm we want the estimates for, e.g., ‘knn’, ‘bpz’, etc..
- Returns:
path – Path to the file in question, if it exists, otherwise None
- Return type:
str | None
- rail.projects.path_funcs.get_ceci_true_nz_output_paths(project, selection, flavor, algo, classifier)[source]
Get the paths to the file with n(z) estimates for a particualar analysis selection and flavor
- Return type:
list[str]- Parameters:
project (RailProject) – Object with information about the structure of the current project
selection (str) – Data selection in question, e.g., ‘gold’, or ‘blended’
flavor (str) – Analysis flavor in question, e.g., ‘baseline’ or ‘zCosmos’
algo (str) – Algorithm we want the estimates for, e.g., ‘knn’, ‘bpz’], etc…
classifier (str) – Algorithm we use to make tomograpic bin
- Returns:
paths – Paths to data
- Return type:
list[str]
- rail.projects.path_funcs.get_z_true_path(project, selection, flavor, tag)[source]
Get the path to the the file with true redshfits for a particualar analysis selection and flavor
- Return type:
str- Parameters:
project (RailProject) – Object with information about the structure of the current project
selection (str) – Data selection in question, e.g., ‘gold’, or ‘blended’
flavor (str) – Analysis flavor in question, e.g., ‘baseline’ or ‘zCosmos’
tag (str) – File tag, e.g., ‘test’ or ‘train’, or ‘train_zCosmos’
- Returns:
path – Path to the file in question
- Return type:
str