-
Notifications
You must be signed in to change notification settings - Fork 25
Fix incorrect test and clean up edge case for Vector Index #1293
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
base: dev
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #1293 +/- ##
==========================================
- Coverage 91.62% 91.62% -0.01%
==========================================
Files 42 42
Lines 9684 9678 -6
Branches 1963 1962 -1
==========================================
- Hits 8873 8867 -6
Misses 523 523
Partials 288 288 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Review Notes: This should be ready to go, but possible coverage may need an extra test to get it covered 100% |
columns=[VectorData(name='p1', description='p1', data=np.arange(3)), dtr_p1, vi_dtr_p1]) | ||
# Super-parent table | ||
dtr_sp = DynamicTableRegion(name='sl1', description='sl1', data=np.arange(4), table=p1) | ||
dtr_sp = DynamicTableRegion(name='sl1', description='sl1', data=np.arange(3), table=p1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous data range was invalid because the target table only has 3 rows. This was causing an IndexError in VectorIndex.get
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oruebel since you set up this test originally, please confirm that I am not missing something
Motivation
#1249
How to test the behavior?
Checklist
CHANGELOG.md
with your changes?