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

BUG: Fix initialization of max level in load_octree #4547

Merged
merged 2 commits into from
Jul 25, 2023

Conversation

matthewturk
Copy link
Member

@matthewturk matthewturk commented Jun 27, 2023

Fixes #4545.

We don't store the level trait for an Oct as an attribute of the Oct itself, so it has to be collected during the initial traversal. This adds it to the load_octree command via the LoadOctree visitor, and then it sets an attribute on the dataset. I looked and this only causes problems for the stream octrees.

This fixes an issue wherein loading an octree then results in just the root oct being selected regardless of the selection method.

@matthewturk matthewturk changed the title [WIP] BUG: Fix initialization of max level in load_octree BUG: Fix initialization of max level in load_octree Jun 28, 2023
@neutrinoceros neutrinoceros added this to the 4.2.2 milestone Jun 28, 2023
neutrinoceros
neutrinoceros previously approved these changes Jun 28, 2023
@neutrinoceros
Copy link
Member

I confirm this fixes the issue, but I have ~0 expertise in this area of the code so I'd like to keep this open for a day or two so others can take a look if they want to.

@neutrinoceros neutrinoceros merged commit 8a113e9 into yt-project:main Jul 25, 2023
12 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/yt that referenced this pull request Jul 25, 2023
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.

BUG: min_level and max_level are not reliably set
2 participants