Replies: 2 comments
-
Hi there, first of all, apologies about the delay on our response. It's great to see people using scipp. |
Beta Was this translation helpful? Give feedback.
-
@fott Saving of vectors should not cause any trouble, it should be supported in scipp 0.5.0 or later. Which version are you using? data_binned.to_hdf5(filename='test.h5') should save events as well as coordinates (such as the position vectors you added). Here is a working example, showing that saving event data and pixel positions works out of the box (requires a recent scippneutron): import scippneutron as scn
import scipp as sc
da = scn.data.powder_sample()
da.to_hdf5('event-data.h5')
sc.io.open_hdf5('event-data.h5') |
Beta Was this translation helpful? Give feedback.
-
Dear developers,
We are currently trying to use scipp to handle data from a new TOF spectrometer on a small neutron source (DIoGENE@IPHI)
We managed to create which contains the event data.
However it appears to be possible to add the pixel position data (variable ) only once a binning operation has been performed (variable <data_binned>)
At this stage we are in a situation similar to the POWGEN example.
The <data_binned> can then be used to nicely process the data (while still containing the low level event data structure)
However, we also expected to eventually use scipp to store the data in a long term format (HDF type) (and bypassing Mantid legacy.)
The export to hdf5 is working nicely except that when saving the dataset we cannot save the vector .
When saving <data_binned>, while the pixel position vector is saved, only the binned data are saved and the event structure is lost.
Hence our question, how is it possible to save both the event data and the detector pixel positions in a single file ?
Best Regards
Attached, a notebook illustrating the way we are creating and <data_binned>
DIoGENE_test2.zip
Beta Was this translation helpful? Give feedback.
All reactions