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

Merged
merged 21 commits into from
Jan 13, 2025
Merged

Fixes for grouped dataset #631

merged 21 commits into from
Jan 13, 2025

Conversation

mdbenito
Copy link
Collaborator

@mdbenito mdbenito commented Dec 5, 2024

Description

This PR 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"]

@mdbenito mdbenito marked this pull request as draft December 13, 2024 11:20
@mdbenito mdbenito marked this pull request as ready for review January 13, 2025 17:19
@mdbenito
Copy link
Collaborator Author

@AnesBenmerzoug I'm not sure you have much time for this, so I'll merge right away and let you review post-merge if you feel like it 😇

@mdbenito mdbenito merged commit 4c88278 into develop Jan 13, 2025
@mdbenito mdbenito deleted the fix/grouped-dataset branch January 13, 2025 18:14
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