Skip to content

Refactor Datastore to use scipp.DataGroup #94

Open

Description

@AndrewSazonov

The current Datastore implementation is based on numpy arrays. With the planned move to scipp, we should refactor Datastore to use scipp.DataGroup (and DataArray where appropriate).

Benefits:

  • Native support for uncertainties and masks (useful for excluded regions)
  • Cleaner grouping of related arrays (measured, calculated, background, etc.)
  • Better consistency with other EasyScience components that are moving to scipp

This was touched on in #88 (review), but needs a dedicated discussion and design decision.

Open questions:

  • Should we map each array (e.g., measured intensities) directly to DataArray entries in the DataGroup?
  • Should recalculated fields (e.g., calculated intensities, background, d_spacing, etc.) also be stored in the DataGroup, or always computed on demand?
  • Is the overall datastore.py structure (BaseDatastore, PowderDatastore, SingleCrystalDatastore) still sufficient, or do we anticipate larger design changes?

Activity

  1. added
    [scope] ⚠️ label needed
    on Sep 5, 2025
  2. easyscience commented on Apr 1, 2026

    @easyscience
    Contributor

    Added default label [priority] ⚠️ label needed. Please consider re-labeling this issue appropriately.

  3. added
    [priority] ⚠️ label needed
    on Apr 1, 2026
  4. deleted a comment from easyscience on Apr 1, 2026
  5. deleted a comment from easyscience on Apr 1, 2026
  6. deleted a comment from easyscience on Apr 1, 2026
  7. deleted a comment from easyscience on Apr 1, 2026
  8. deleted a comment from easyscience on Apr 1, 2026
  9. deleted a comment from easyscience on Apr 1, 2026
  10. deleted a comment from easyscience on Apr 1, 2026
  11. deleted a comment from easyscience on Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [priority] ⚠️ label needed[scope] ⚠️ label needed

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions