load_irf_dict_from_file#

gammapy.irf.load_irf_dict_from_file(filename)[source]#

Load all available IRF components from given file into a dictionary.

If multiple IRFs of the same type are present, the first encountered is returned.

Parameters
filenamestr or Path

Path to the file containing the IRF components, if EVENTS and GTI HDUs are included in the file, they are ignored.

Returns
irf_dictdict of IRF

Dictionary with instances of the Gammapy objects corresponding to the IRF components.