Skip to content

tomo: Rework the sinogram to fetch binary data

Valentin Valls requested to merge sino-with-binary-fetching into main

Closes daiquiri-tomo#242 (closed)

This PR rework the sinogram to fetch the data as binary data.

For that a dedicated service was create, which allow to define what have to be fetched.

This service have to be setup in the widget, and it use it's own cache.

It is used the following way:

  const result = useScanData({
    scanId,
    channelNames: ['sinogram', 'rotation', 'translation'],
    start: 0,
    stop: nbPoints,
  });
  • Support incremental update of the store
  • Support 0-copy from store to the plot

We also can reduce the amount of concatenation by pre-allocating a bigger amount of data in the first place. This very easy to do. For example with an extra param like expectedSize. But i will not do that for now.

Edited by Valentin Valls

Merge request reports

Loading