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

ENH: add support for Quokka datasets #4805

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

yut23
Copy link
Member

@yut23 yut23 commented Feb 4, 2024

PR Summary

This allows yt to recognize Quokka output files. They are handled by the AMReX reader, but the reader does not recognize the particle data when loading Quokka outputs using yt.load. (Manually creating an AMReXDataset object does work, but this should not be necessary for users to invoke directly.)

Unlike other AMReX/Boxlib codes, Quokka doesn't have a job_info file, but does have a metadata.yaml file (which may be empty). This PR detects this file, and this causes reader to then recognize any particle data that may be present.

Thanks to @BenWibking for noticing this and providing sample outputs!

PR Checklist

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

Quokka doesn't have a job_info file, but does have a metadata.yaml file
(containing an empty mapping by default).
@neutrinoceros neutrinoceros added code frontends Things related to specific frontends enhancement Making something better labels Feb 5, 2024
@neutrinoceros
Copy link
Member

Thank you ! Although not technically a bug fix, I'm tempted to triage this to yt 4.3.1 for practicality. I also note that failures are unrelated (see #4799). @yt-fido test this please

@neutrinoceros neutrinoceros added this to the 4.3.1 milestone Feb 5, 2024
@matthewturk matthewturk merged commit a1873a6 into yt-project:main Feb 8, 2024
12 of 13 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/yt that referenced this pull request Feb 8, 2024
neutrinoceros added a commit that referenced this pull request Feb 8, 2024
…5-on-yt-4.3.x

Backport PR #4805 on branch yt-4.3.x (ENH: add support for Quokka datasets)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code frontends Things related to specific frontends enhancement Making something better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants