New ScreenPanel
This commit is contained in:
29
script/test48.py
Executable file
29
script/test48.py
Executable file
@@ -0,0 +1,29 @@
|
||||
###################################################################################################
|
||||
#Data Manipulation: Boolean datasets
|
||||
###################################################################################################
|
||||
|
||||
#Boolean datasets
|
||||
path="group/data1"
|
||||
data1d = [True, False, True]
|
||||
save_dataset(path, data1d, '[z')
|
||||
|
||||
path="group/data2"
|
||||
create_dataset(path, 'z')
|
||||
append_dataset(path, True)
|
||||
append_dataset(path, False)
|
||||
append_dataset(path, True)
|
||||
append_dataset(path, False)
|
||||
append_dataset(path, True)
|
||||
|
||||
|
||||
|
||||
path="group/data3"
|
||||
data2d = to_array ( [[True, False, True], [True, True, True], [False, False, True]], '[z')
|
||||
save_dataset(path, data2d)
|
||||
|
||||
|
||||
|
||||
path="group/data4"
|
||||
create_dataset(path, 'z', dimensions = [2, 3])
|
||||
append_dataset(path, to_array([True, False, True], '[z'), type='[z')
|
||||
append_dataset(path, to_array([True, True, True], '[z'), type='[z')
|
||||
Reference in New Issue
Block a user