Skip to content
Snippets Groups Projects
Commit 5aca6b04 authored by Alexis GAMELIN's avatar Alexis GAMELIN
Browse files

fix analysis

parent baf3f141
No related branches found
No related tags found
No related merge requests found
...@@ -17,17 +17,15 @@ OMEGA_REV = 2*pi*c/CIRCUMFERENCE ...@@ -17,17 +17,15 @@ OMEGA_REV = 2*pi*c/CIRCUMFERENCE
r_p = e**2/(m_p*c**2) r_p = e**2/(m_p*c**2)
class BBDataViewer(): class BBDataViewer():
def __init__(self, filename, h_rf): def __init__(self, h_rf):
self.filename = filename
self.filling_pattern_calibration = 100
self.data_type = np.float32 self.data_type = np.float32
self.h_rf = h_rf self.h_rf = h_rf
def read_data_growthdamp(self, folder, filename, N = 0): def read_data_growthdamp(self, folder, filename, N = 0):
with hp.File(folder + filename + '.hdf5') as f: with hp.File(folder + filename + '.hdf5') as f:
# BPM_data = f[f'raw_{N:}'][:] # BPM_data = f[f'raw_{N:}'][:]
self.data_bunch_x = f[f'raw_{N:}'][:] self.data_bunch_x = f[f'raw'][:]
self.data_bunch_y = f[f'raw_{N:}'][:] self.data_bunch_y = f[f'raw'][:]
# self.emitYC02before = np.array(f['emitZ_C02_before']) # self.emitYC02before = np.array(f['emitZ_C02_before'])
# self.emitYC02after = np.array(f['emitZ_C02_after']) # self.emitYC02after = np.array(f['emitZ_C02_after'])
# self.emitXC02before = np.array(f['emitX_C02_before']) # self.emitXC02before = np.array(f['emitX_C02_before'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment