Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for grouped dataset #631

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

Fixes for grouped dataset #631

wants to merge 9 commits into from

Conversation

mdbenito
Copy link
Collaborator

@mdbenito mdbenito commented Dec 5, 2024

Description

This PR closes fixes inconsistencies in how grouped dataset operates with indices and allows methods to consistently access data either via "logical indices" (those kept by Dataset) or "data indices" (those corresponding to the data arrays themselves)

Changes

  • Introduced methods to work with logical and data indices
  • Hid access to the raw data arrays behind method data() which takes logical indices as argument
  • Fixed the implementation of getitem to return a (Grouped)Dataset as would be expected
  • Added tests covering 100% of dataset.py

Checklist

  • Wrote Unit tests (if necessary)
  • Updated Documentation (if necessary)
  • Updated Changelog
  • If notebooks were added/changed, added boilerplate cells are tagged with "tags": ["hide"] or "tags": ["hide-input"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant