NNDy/scripts/experiment_remote.py
castaneda 73754efd3b Upload files to "scripts"
Uncommented final version of NNDy
2025-03-21 14:03:04 +01:00

34 lines
781 B
Python

#imports for runmanager - labscript
from runmanager_remote import run_experiment
from lyse import *
import pandas as pd
import TestDA
import xarray as xr
if __name__ == '__main__':
routine_name = 'TestSetup'
TestVar = {'T_wlm': 1,
'delta_freq': 0,
'wait_AWG': 5,
'buffer_time': 5,
'carrier_amp': 2
}
hdf_output_file = run_experiment(routine_name, global_var = TestVar)
print('run finished')
#df = pd.DataFrame(lyse_run.get_result('wlm', 'wlm_df'), columns = ['timestamp [s]','wavelength [nm]', 'frequency [THz]'])
#print(df)
#results = TestDA.analysis(hdf_output_file)
cost = TestDA.cost(hdf_output_file)
#print('I am back')
print(cost)