New ScreenPanel
This commit is contained in:
15
script/test/Save3d.py
Executable file
15
script/test/Save3d.py
Executable file
@@ -0,0 +1,15 @@
|
||||
|
||||
#Creating a 3D dataset from an array
|
||||
data3d = [ [ [1,2,3,4,5], [2,3,4,5,6], [3,4,5,6,7]], [ [3,2,3,4,5], [4,3,4,5,6], [5,4,5,6,7]]]
|
||||
path="group/data1"
|
||||
save_dataset(path, data3d)
|
||||
#Reading it back
|
||||
read =load_data(path,0)
|
||||
print read.tolist()
|
||||
read =load_data(path,1)
|
||||
print read.tolist()
|
||||
|
||||
|
||||
set_exec_pars(depth_dim=2)
|
||||
|
||||
save_dataset("group/data2", data3d)
|
||||
Reference in New Issue
Block a user