Error: Expected dataset to have numeric type
kdheepak opened this issue · comments
Describe the bug
When using the signal
attribute on a group, I get a Expected data to be numeric
error message. This seems to work for other HDF5 files though.
In the screenshots below, the left hand side is the h5web interface for chopper.nxs
and the right hand side is the file that we are trying to create with the signal
attribute on one of the groups:
So I don't believe this is a bug necessarily. I think this is us incorrectly setting some attribute?
To Reproduce
- Download this file
- Open this file in h5web.
- Click on
nexus_entry/nx_data
Expected behaviour
We expect the plot to be seen because the signal
attribute points to Dmd2
Screenshots
The plot shows up as expected when using nexus_entry/nx_data/Dmd2
but does not work when clicking on the nexus_entry/nx_data
group
Context
- OS: Windows
- Browser: VSCode
Hello @kdheepak
First, let me apologize, you are clearly ahead of us on #1441 since you now have a correctly structured NeXus file while we didn't make the relevant changes in H5Web 😅
In this case, it comes from the axes
datasets that store string rather than numerical values (the signal
and your NeXus structure is fine).
We don't support yet axes
containing strings . For that, we need to do the changes mentioned in #1441 (comment) so that
The axes would still show indices, but the tooltip would display the real axis value
Thanks for the report, that will motivate us to keep working on that 😉
Just to be crystal clear: further progress on this will be tracked at #1441