11 lines
336 B
JavaScript
Executable File
11 lines
336 B
JavaScript
Executable File
path="group/data1"
|
|
data1d = [1.0, 2.0, 3.0, 4.0, 5.0]
|
|
save_dataset(path, data1d)
|
|
set_attribute(path, "AttrString", "Value")
|
|
set_attribute(path, "AttrInteger", 1)
|
|
set_attribute(path, "AttrDouble", 2.0)
|
|
set_attribute(path, "AttrBoolean", true)
|
|
read =load_data(path)
|
|
print (to_array(read))
|
|
print (get_attributes(path))
|
|
plot(read) |