Hi Omar,
Sorry, I didn’t realize you couldn’t access it.
The following code seems to reproduce the problem as well - let me know if you need anything else! Thank you.
Oskar
import pytimber
from pytimber import pagestore
import time, calendar
#from numba import jit
%matplotlib notebook
ldb = pytimber.LoggingDB()
mydbPressureMDB = pagestore.PageStore('lhcPressure.db', './')
t1 = "2012-07-01 00:00:00"
t2 = "2012-07-01 23:59:59"
ts1 = calendar.timegm(time.strptime(t1,"%Y-%m-%d %H:%M:%S")) - 0 * 3600
ts2 = calendar.timegm(time.strptime(t2,"%Y-%m-%d %H:%M:%S")) - 0 * 3600
keys_beam1 = ['MKI.D5L2.B1:PRESSURE', 'VGPB.118.5L2.C.PR', 'MKI.B5L2.B1:PRESSURE', 'MKI.A5L2.B1:PRESSURE', 'VGPB.137.5L2.B.PR', 'VGPB.14.5L2.B.PR', 'VGPB.176.5L2.B.PR', 'VGPB.192.5L2.B.PR', 'VGPB.59.5L2.B.PR', 'VGPB.98.5L2.B.PR', 'LHC.BCTFR.A6R4.B1:BEAM_INTENSITY', 'MKI.A5L2.B1:PRESSURE_INT', 'MKI.B5L2.B1:PRESSURE_INT', 'MKI.C5L2.B1:PRESSURE_INT', 'MKI.D5L2.B1:PRESSURE_INT']
keys_beam2 = ['MKI.D5R8.B2:PRESSURE', 'MKI.C5R8.B2:PRESSURE', 'MKI.B5R8.B2:PRESSURE', 'MKI.A5R8.B2:PRESSURE', 'VGPB.138.5R8.R.PR', 'VGPB.14.5R8.R.PR', 'VGPB.176.5R8.R.PR', 'VGPB.192.5R8.R.PR', 'VGPB.59.5R8.R.PR', 'VGPB.98.5R8.R.PR', 'LHC.BCTFR.A6R4.B2:BEAM_INTENSITY', 'MKI.A5R8.B2:PRESSURE_INT', 'MKI.B5R8.B2:PRESSURE_INT', 'MKI.C5R8.B2:PRESSURE_INT', 'MKI.D5R8.B2:PRESSURE_INT']
def Store_data(keys):
start_time = time.time()
timber_data = ldb.getAligned(keys, ts1, ts2)
end_time = time.time()
for key in keys:
mydbPressureMDB.store_variable(key, timber_data['timestamps'], timber_data[key]);
print('Aligning and storing data from ',t1,' to ',t2)
Store_data(keys_beam1+keys_beam2)