Files
x11ma/script/test/data_api.py
2016-04-01 14:24:40 +02:00

20 lines
293 B
Python

temp = 25.0
set_context(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)
ctx = get_context()