ctaplot/gammaboard/gammaboard.py
def load_data_from_h5(experiment, experiments_directory):
    """
    Load an hdf5 file containing results from an experiment

    Args
        experiment (str): the name of the experiment
        experiments_directory (str): the path to the folder containing the experiment folders

    Returns
        `pandas.DataFrame`
    """
    assert experiment in os.listdir(experiments_directory)

    result_files = find_data_files(experiment, experiments_directory)
    result_data = []
    for r_file in result_files:
        try:
            data = pd.read_hdf(r_file, key='data')
        except KeyError:
            try:
                data = read_lst_dl2_data(r_file)
            except Exception as e:
                print(e)
                continue
        result_data.append(data)
    return pd.concat(result_data)

    Load an hdf5 file containing results from an experiment

    Args
        experiment (str): the name of the experiment
        experiments_directory (str): the path to the folder containing the experiment folders

    Returns
        `pandas.DataFrame`
    
Load an hdf5 file containing results from an experiment
Args
experiment (str): the name of the experiment
experiments_directory (str): the path to the folder containing the experiment folders


Load an hdf5 file containing results from an experiment Args experiment ( str ) : the name of the experiment experiments_directory ( str ) : the path to the folder containing the experiment folders
def load_data_from_h5(experiment, experiments_directory):
    assert experiment in os.listdir(experiments_directory)
    result_files = find_data_files(experiment, experiments_directory)
    result_data = []
    for r_file in result_files:
        try:
            data = pd.read_hdf(r_file, key='data')
        except KeyError:
            try:
                data = read_lst_dl2_data(r_file)
            except Exception as e:
                print(e)
                continue
        result_data.append(data)
    return pd.concat(result_data)
def load_data_from_h5 ( experiment , experiments_directory ) : assert experiment in os . listdir ( experiments_directory ) result_files = find_data_files ( experiment , experiments_directory ) result_data = [ ] for r_file in result_files : try : data = pd . read_hdf ( r_file , key = 'data' ) except KeyError : try : data = read_lst_dl2_data ( r_file ) except Exception as e : print ( e ) continue result_data . append ( data ) return pd . concat ( result_data )
Load an hdf5 file containing results from an experiment
Args
experiment (str): the name of the experiment
experiments_directory (str): the path to the folder containing the experiment folders
Load an hdf5 file containing results from an experiment Args experiment ( str ) : the name of the experiment experiments_directory ( str ) : the path to the folder containing the experiment folders
"""
    Load an hdf5 file containing results from an experiment

    Args
        experiment (str): the name of the experiment
        experiments_directory (str): the path to the folder containing the experiment folders

    Returns
        `pandas.DataFrame`
    """
experiment
experiments_directory