-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Hello @giuserive Thanks for the report ! How do you store the time data in your HDF5 file ? It is using a special format like If the data is stored numerically, it should work fine (see the example below). It could also come from the NX format: NeXus is quite picky and a single typo like import h5py
time1 = [12, 13, 14, 20, 21, 22, 23]
Y1 = [547.56, 595.36, 645.16, 696.96, 750.76, 806.56, 864.36]
with h5py.File("line.h5", "w") as h5file:
line_grp = h5file.create_group("line")
line_grp.attrs["NX_class"] = "NXdata"
line_grp.create_dataset("time", data=time1)
line_grp.create_dataset("Y1", data=Y1)
line_grp.attrs["signal"] = "Y1"
line_grp.attrs["axes"] = "time" |
Beta Was this translation helpful? Give feedback.
-
|
Hello @loichuder, However, they are not in datetime format, so I’m not sure if they need to be converted. I’d like to ask if you could check their consistency. This is the link: https://drive.google.com/file/d/1vXndCfMjWdoE1hbbFYcAr-KXmvowo0Hi/view?usp=sharing |
Beta Was this translation helpful? Give feedback.








Hello @giuserive
Thanks for the report ! How do you store the time data in your HDF5 file ? It is using a special format like
datetimeor a string format ?If the data is stored numerically, it should work fine (see the example below).
It could also come from the NX format: NeXus is quite picky and a single typo like
axeinstead ofaxescan break the visualization. You can share your file (or how you generate it) if you wish us to have a look at it.