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: load_hdf5_file doesn't pass bounding box to load_amr_grids #4672

Merged
merged 3 commits into from
Sep 20, 2023

Conversation

jzuhone
Copy link
Contributor

@jzuhone jzuhone commented Sep 20, 2023

PR Summary

load_hdf5_file serves as a way to load arbitrary HDF5 files with the stream frontend as a wrapper around load_amr_grids. It accepts a bounding box argument bbox that can be used to determine the grid decomposition, but this bounding box is not passed to load_amr_grids itself and therefore the actual bounding box does not change. This PR addresses that issue and provides a test.

PR Checklist

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

matthewturk
matthewturk previously approved these changes Sep 20, 2023
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.

Thank you -- I can't believe I missed this!

@neutrinoceros
Copy link
Member

pre-commit.ci autofix

Copy link
Member

@neutrinoceros neutrinoceros left a comment

Choose a reason for hiding this comment

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

Nice catch !

@neutrinoceros neutrinoceros added this to the 4.3.0 milestone Sep 20, 2023
@jzuhone
Copy link
Contributor Author

jzuhone commented Sep 20, 2023

@yt-fido test this please

@neutrinoceros neutrinoceros enabled auto-merge (squash) September 20, 2023 17:38
@neutrinoceros neutrinoceros merged commit 95e7070 into yt-project:main Sep 20, 2023
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants