From 9947d246eff730badd278ef56becad095d79decf Mon Sep 17 00:00:00 2001 From: X11MA Date: Fri, 1 Apr 2016 14:24:40 +0200 Subject: [PATCH] Startup --- script/test/data_api.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 script/test/data_api.py diff --git a/script/test/data_api.py b/script/test/data_api.py new file mode 100644 index 0000000..e613bc8 --- /dev/null +++ b/script/test/data_api.py @@ -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() \ No newline at end of file