Skip to content
Discussion options

You must be logged in to vote

Hello @giuserive

Thanks for the report ! How do you store the time data in your HDF5 file ? It is using a special format like datetime or 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 axe instead of axes can break the visualization. You can share your file (or how you generate it) if you wish us to have a look at it.

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"
    l…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by loichuder
Comment options

You must be logged in to vote
3 replies
@loichuder
Comment options

@giuserive
Comment options

@loichuder
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants