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 aggregate for more than two groups #2965

Merged

Conversation

ivirshup
Copy link
Member

@ivirshup ivirshup commented Mar 26, 2024

Offsets for factors were being calculated wrong. It was being done with a sum when it should have been product.

  • Release notes not necessary because:

@ivirshup ivirshup added this to the 1.10.1 milestone Mar 26, 2024
@ivirshup ivirshup requested a review from grst March 26, 2024 20:06
Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.49%. Comparing base (65f567e) to head (f00e045).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2965   +/-   ##
=======================================
  Coverage   75.49%   75.49%           
=======================================
  Files         116      116           
  Lines       12911    12911           
=======================================
  Hits         9747     9747           
  Misses       3164     3164           
Files Coverage Δ
scanpy/get/_aggregated.py 94.73% <100.00%> (ø)

@ivirshup ivirshup requested a review from Intron7 March 26, 2024 22:01
Copy link
Member

@Intron7 Intron7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@ivirshup ivirshup merged commit 3ceb740 into scverse:main Mar 27, 2024
15 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/scanpy that referenced this pull request Mar 27, 2024
ivirshup added a commit that referenced this pull request Mar 27, 2024
Co-authored-by: Isaac Virshup <ivirshup@gmail.com>
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.

sc.get.aggregate looses values
2 participants