示例#1
0
def merged_h5file(tmp_path, simulated_dl1_file):
    """Produce a smart merged h5 file from simulated dl1 files."""
    from lstchain.io.io import smart_merge_h5files

    merged_dl1_file = tmp_path / "dl1_merged.h5"
    smart_merge_h5files(
        [simulated_dl1_file, simulated_dl1_file], output_filename=merged_dl1_file
    )
    return merged_dl1_file
示例#2
0
def test_smart_merge_h5files():
    io.smart_merge_h5files([dl1_file, dl1_file],
                           output_filename=merged_dl1_file)
    assert os.path.exists(merged_dl1_file)
示例#3
0
def test_smart_merge_h5files():
    from lstchain.io.io import smart_merge_h5files
    smart_merge_h5files([dl1_file, dl1_file], output_filename=merged_dl1_file)
    assert os.path.exists(merged_dl1_file)