Startup
This commit is contained in:
20
script/test/data_api.py
Normal file
20
script/test/data_api.py
Normal file
@@ -0,0 +1,20 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user