data_frame = data()
path=data_frame['filepath'].iloc[-1] #lastvalue in dataframe
units={}
for globals_group in runmanager.get_grouplist(path):
for global_name in runmanager.get_globalslist(path, globals_group):
with h5py.File(path,'r') as shot_h5py: global_units = shot_h5py["globals"][globals_group]["units"].attrs[global_name]
if global_units=='us': #base unit for time
g_unit=usec
elif global_units=='ms':
g_unit=msec
elif global_units=='s':
g_unit=sec
elif global_units=='Hz':#base unit for frequency
g_unit=1
elif global_units=='kHz':
e_unit=1e3
elif global_units=='MHz':
g_unit=1e6
else:
g_unit=1
units[str(global_name)]=g_unit
GLOBALS={}
for i in runmanager.remote.get_globals():
GLOBALS[str(i)]=eval(i)*units[str(i)]