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

(fix): correct shape for empty element in concat with dask #1843

Merged
merged 9 commits into from
Feb 13, 2025

Conversation

ilan-gold
Copy link
Contributor

@ilan-gold ilan-gold added this to the 0.11.4 milestone Jan 27, 2025
Copy link

codecov bot commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.84%. Comparing base (4dc0618) to head (ed2d921).
Report is 2 commits behind head on main.

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     
Files with missing lines Coverage Δ
src/anndata/_core/merge.py 83.13% <100.00%> (-10.83%) ⬇️

... and 7 files with indirect coverage changes

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):
Copy link
Member

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)

Copy link
Contributor Author

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

Copy link
Member

@flying-sheep flying-sheep left a 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!

@ilan-gold
Copy link
Contributor Author

Good call!

@ilan-gold ilan-gold enabled auto-merge (squash) February 13, 2025 13:09
@ilan-gold ilan-gold merged commit 9838253 into main Feb 13, 2025
15 checks passed
@ilan-gold ilan-gold deleted the ig/fix_missing_elem_shape_dask branch February 13, 2025 14:39
meeseeksmachine pushed a commit to meeseeksmachine/anndata that referenced this pull request Feb 13, 2025
flying-sheep pushed a commit that referenced this pull request Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

missing dask-elem imputation for concat not working with differently sized input objects
2 participants