def write_dl0_example(filename, data): S = Serializer(filename, overwrite=True) # Create table for container in data: S.write(container.dl0) # Print table print(S._writer.table) # Save table to disk S.save() return S
def write_dl0_example(filename, data): S = Serializer(filename, mode='w') # Create table for container in data: S.write(container.dl0) # Print table print(S._writer.table) # Save table to disk S.save() return S
def write_dl1_tel_example(filename, data): t38 = data[0].dl1.tel[38] S_cal = Serializer(filename, overwrite=True) S_cal.write(t38) print(S_cal._writer.table) # t11_1 = data[1].dl1.tel[11] # S_cal.write(t11_1) # This will not work because shape of data is different from tel to tel. S_cal.save() return S_cal