-
Notifications
You must be signed in to change notification settings - Fork 159
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
(fix): correct shape for empty element in concat with dask #1843
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1843 +/- ##
==========================================
- Coverage 86.25% 83.84% -2.42%
==========================================
Files 41 41
Lines 6285 6288 +3
==========================================
- Hits 5421 5272 -149
- Misses 864 1016 +152
|
src/anndata/_core/merge.py
Outdated
return el[self.old_idx.get_indexer(self.new_idx)] | ||
return el[self.get_new_idx_from_old_idx()] | ||
|
||
def get_new_idx_from_old_idx(self): |
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.
hm, is that the correct name? wouldn’t the accurate name contain an into
or do I understand this API wrong (pandas docs are down, so I can‘t check)
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.
I'm not sure about into
but perhaps just indexer
and make this a property
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.
you could test or #pragma: no cover
the new exception, otherwise looks good!
Good call! |
for more information, see https://pre-commit.ci
…oncat with dask
…ith dask (#1861) Co-authored-by: Ilan Gold <[email protected]>
concat
not working with differently sized input objects #1842