wf_psf.utils.io module
IO.
A module which defines methods to manage wf-psf inputs and outputs.
- Author:
Jennifer Pollack <jennifer.pollack@cea.fr>
- class wf_psf.utils.io.FileIOHandler(repodir_path, output_path, config_path)[source]
Bases:
object
FileIOHandler.
A class to manage the output file structure.
- Parameters:
Methods
copy_conffile_to_output_dir
(source_file)Write File.
get_checkpoint_dir
(checkpoint_dir)Get Checkpoint Directory.
get_config_dir
(run_output_dir)Get Config Directory.
get_metrics_dir
(metrics_dir)Get Metrics Directory.
get_optimizer_dir
(optimizer_dir)Get Optimizer Directory.
get_plots_dir
(plots_dir)Get Plots Directory.
get_psf_model_dir
(psf_model_dir)Get PSF Model Directory.
Get Timestamp.
Setup Outputs.
- copy_conffile_to_output_dir(source_file)[source]
Write File.
A function to copy a file to the output run directory.
- get_checkpoint_dir(checkpoint_dir)[source]
Get Checkpoint Directory.
A function that returns path of checkpoint directory.
- get_config_dir(run_output_dir)[source]
Get Config Directory.
A function that returns path of config directory.
- Returns:
Absolute path to config directory
- Return type:
- get_metrics_dir(metrics_dir)[source]
Get Metrics Directory.
A function that returns path of metrics directory.
- get_optimizer_dir(optimizer_dir)[source]
Get Optimizer Directory.
A function that returns path of optimizer directory.
- get_plots_dir(plots_dir)[source]
Get Plots Directory.
A function that returns path of plots directory.
- get_psf_model_dir(psf_model_dir)[source]
Get PSF Model Directory.
A function that returns path of PSF model directory.