diff options
author | Frédéric-Emmanuel Picca <picca@debian.org> | 2018-08-08 14:09:02 +0200 |
---|---|---|
committer | Frédéric-Emmanuel Picca <picca@debian.org> | 2018-08-08 14:09:02 +0200 |
commit | 75271d5d9979b204baf8172b2a03da4330b14083 (patch) | |
tree | 22a2e31692654f1464c6fc8463cafe6598d9bdc4 /examples/hdf5widget.py | |
parent | 989033673e36f8d9959dd2d3a8285e5339bfae0c (diff) | |
parent | 302d3bcf3ef555284ce1bcf5cd7cd371addfa608 (diff) |
Merge tag 'debian/0.8.0+dfsg-1' into debian/stretch-backports
silx release 0.8.0+dfsg-1 for unstable (sid)
(maintainer view tag generated by dgit --quilt=gbp)
Diffstat (limited to 'examples/hdf5widget.py')
-rwxr-xr-x | examples/hdf5widget.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/hdf5widget.py b/examples/hdf5widget.py index 7a8e7ae..bf92d4e 100755 --- a/examples/hdf5widget.py +++ b/examples/hdf5widget.py @@ -421,6 +421,16 @@ def get_hdf5_with_nxdata(): gd1.create_dataset("hypercube", data=numpy.arange(2*3*4*5*6).reshape((2, 3, 4, 5, 6))) + gd2 = g.create_group("3D_nonlinear_scaling") + gd2.attrs["NX_class"] = u"NXdata" + gd2.attrs["signal"] = u"cube" + gd2.attrs["axes"] = str_attrs(["img_idx", "rows_coordinates", "cols_coordinates"]) + gd2.create_dataset("cube", data=numpy.arange(4*5*6).reshape((4, 5, 6))) + gd2.create_dataset("img_idx", data=numpy.array([2., -0.1, 8, 3.14])) + gd2.create_dataset("rows_coordinates", data=0.1*numpy.arange(5)) + gd2.create_dataset("cols_coordinates", data=[0.1, 0.6, 0.7, 8., 8.1, 8.2]) + + # invalid NXdata g = h5.create_group("invalid") g0 = g.create_group("invalid NXdata") |