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 bug in bitmap index for particle datasets #3788

Merged
merged 1 commit into from
Feb 7, 2022

Conversation

langmm
Copy link
Contributor

@langmm langmm commented Feb 7, 2022

PR Summary

This PR fixes a bug where __fill_refined_ranges in ParticleBitmap was returning the total number of refined cells for a coarse cell instead of the number of new refined cells. This bug caused coarse cells to be marked as fully refined on subsequent passes and so they were not actually refined and resulted in some files not being identified as selected, particularly for selectors that rely on the refined index (e.g. slice selector).

This fixes #3672

PR Checklist

  • New features are documented, with docstrings and narrative docs
  • Adds a test for any bugs fixed. Adds tests for new features.

…he total number of refined cells for a coarse cell instead of the number of new refined cells
@welcome
Copy link

welcome bot commented Feb 7, 2022

Hi! Welcome, and thanks for opening this pull request. We have some guidelines for new pull requests, and soon you'll hear back about the results of our tests and continuous integration checks. Thank you for your contribution!

Copy link
Member

@matthewturk matthewturk left a comment

Choose a reason for hiding this comment

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

I have tested and verified, and it works! Plus the explanation makes sense. Thank you, @langmm!

@matthewturk
Copy link
Member

Before this gets merged, let's set up a milestone for 4.0.3 and add this to it?

@matthewturk matthewturk added this to the 4.0.3 milestone Feb 7, 2022
@matthewturk matthewturk added bug demeshening Removing the global mesh for particles index: particle labels Feb 7, 2022
@matthewturk
Copy link
Member

@jzuhone I'll leave this to you to hit the button on -- I've added the milestone and it should auto-backport.

@jzuhone
Copy link
Contributor

jzuhone commented Feb 7, 2022

I agree, works great!

@jzuhone
Copy link
Contributor

jzuhone commented Feb 7, 2022

@matthewturk @langmm thanks for your help in tracking this down, it's a big help. once the tests pass I will merge.

@jzuhone jzuhone merged commit 3e3add4 into yt-project:main Feb 7, 2022
@welcome
Copy link

welcome bot commented Feb 7, 2022

Hooray! Congratulations on your first merged pull request! We hope we keep seeing you around! 🎆

meeseeksmachine pushed a commit to meeseeksmachine/yt that referenced this pull request Feb 7, 2022
neutrinoceros added a commit that referenced this pull request Feb 8, 2022
…8-on-yt-4.0.x

Backport PR #3788 on branch yt-4.0.x (Fix bug in bitmap index for particle datasets)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug demeshening Removing the global mesh for particles index: particle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Strange square holes in slices and projections of Arepo data
3 participants