Skip to content

Enable __getitem__ in LGDOCollections classes to use slicing, masking, and fancy-indexing#212

Merged
gipert merged 18 commits intolegend-exp:mainfrom
iguinn:iter
Feb 19, 2026
Merged

Enable __getitem__ in LGDOCollections classes to use slicing, masking, and fancy-indexing#212
gipert merged 18 commits intolegend-exp:mainfrom
iguinn:iter

Conversation

@iguinn
Copy link
Copy Markdown
Contributor

@iguinn iguinn commented Feb 2, 2026

See #69

Implemented sliced/masked/fancy indexed reading of Table, VectorOfVectors and Struct (it was already implemented for Array). Note that these implementations return LGDO objects of the same types rather than numpy arrays. The behavior of Array was not changed (see discussion in the above issue).

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 2, 2026

Codecov Report

❌ Patch coverage is 94.11765% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.12%. Comparing base (486a595) to head (7493b35).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/lgdo/types/table.py 91.66% 1 Missing ⚠️
src/lgdo/types/vectorofvectors.py 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #212      +/-   ##
==========================================
+ Coverage   85.00%   85.12%   +0.11%     
==========================================
  Files          19       19              
  Lines        1581     1600      +19     
==========================================
+ Hits         1344     1362      +18     
- Misses        237      238       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@iguinn iguinn mentioned this pull request Feb 2, 2026
@gipert gipert linked an issue Feb 3, 2026 that may be closed by this pull request
@gipert
Copy link
Copy Markdown
Member

gipert commented Feb 4, 2026

Closing since we are about to merge #201 and this PR should be moved to legend-lh5io.

@gipert gipert closed this Feb 4, 2026
@gipert
Copy link
Copy Markdown
Member

gipert commented Feb 4, 2026

Actually let's keep this open since you also have LGDO-related changes.

@gipert gipert reopened this Feb 4, 2026
@gipert gipert marked this pull request as draft February 4, 2026 09:35
@iguinn
Copy link
Copy Markdown
Contributor Author

iguinn commented Feb 19, 2026

Moved all changes to iterator to lh5io; see legend-exp/legend-lh5io#9

@iguinn iguinn marked this pull request as ready for review February 19, 2026 17:14
@iguinn iguinn changed the title Improvements for querying Enable __getitem__ in LGDOCollections classes to use slicing, masking, and fancy-indexing Feb 19, 2026
@gipert gipert merged commit 8905c19 into legend-exp:main Feb 19, 2026
15 checks passed
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.

Table enhancements

2 participants