Files
x11ma/script/test/data_api.py
2021-03-12 12:19:10 +01:00

20 lines
303 B
Python
Executable File

temp = 25.0
set_exec_pars(name = "temp_"+str(temp), persist = False)
path="/tst"
data1d = [1.0, 2.0, 3.0, 4.0, 5.0]
save_dataset(path, data1d)
set_attribute(path, "Temperature", temp)
read =load_data(path)
print read.tolist()
assert data1d==read.tolist()
plot(read)
exec_pars = get_exec_pars()