Open hjkirkwood opened 6 years ago
That's bizarre. I can't reproduce this with either 0.1 (the version on PyPI) or master. In both cases the result looks correct:
<xarray.DataArray (trainId: 10)>
array([128462809, 128462812, 128462813, 128462818, 128462819, 128462820,
128462822, 128462824, 128462825, 128462827], dtype=uint64)
Coordinates:
* trainId (trainId) uint64 128462809 128462812 128462813 128462818 ...
Do you know where the karabo_data version you're using came from? I also see that it seems to be returning a plain numpy array, whereas get_array()
usually returns a labelled xarray object.
I spoke to @hjkirkwood about this yesterday, and we couldn't quickly reproduce it. So nothing to do at the moment, but he'll let us know if he runs into this kind of problem again.
When I request the train id's associated with a certain detector using karabo_data.Rundirectory, I see repeating trainIds and they increase by increments of ~4, but when I look at them with h5py they are unique (mostly) and ascending. Example:
This returns:
But using karabo_data:
I get: