iact_estimator.io#

Functions for input / output operations.

Module Contents#

Functions#

read_yaml(input_file_path)

Load data from a YAML file as a dictionary.

load_ebl(ebl_file_path)

Load Extragalactic Background Light (EBL) data.

iact_estimator.io.read_yaml(input_file_path)[source]#

Load data from a YAML file as a dictionary.

Parameters:
input_file_pathstr

Path to the input YAML file.

Returns:
datadict

Contents of the YAML file in form of a Python dictionary.

iact_estimator.io.load_ebl(ebl_file_path)[source]#

Load Extragalactic Background Light (EBL) data.

Parameters:
ebl_file_pathstr or ~pathlib.Path

Path to an EBL data file.

Returns:
zznp.array

TBD.

energies~astopy.units.Quantity

Energy values.

tausnp.array

TBD.