Example #1
0
def get_eff_mu(_energy,mu_file_path):
    modf_en = xModulationFactor(mu_file_path)
    _modf = []
    for en in _energy:
        modf = modf_en.weighted_average([en])
        _modf.append(modf)
    _modf = numpy.array(_modf)
    return _modf
Example #2
0
def load_mrf(irf_name, folder_path=None):
    """Facility to load the modulation factor for a given IRF set.
    """
    file_path = irf_file_path(irf_name, 'mrf', folder_path, check_file=True)
    return xModulationFactor(file_path)
Example #3
0
def load_mrf(irf_name, folder_path=None):
    """Facility to load the modulation factor for a given IRF set.
    """
    file_path = irf_file_path(irf_name, 'mrf', folder_path, check_file=True)
    return xModulationFactor(file_path)