16 lines
371 B
Python
Executable File
16 lines
371 B
Python
Executable File
|
|
#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)
|