-
Notifications
You must be signed in to change notification settings - Fork 271
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: improve boxlib data type detection #4402
Conversation
c72b609
to
0746642
Compare
Some of the Castro (and Maestro) sample datasets are from before we migrated from BoxLib to AMReX, so the job_info files don't contain the string "amrex". That means |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for tackling this long standing problem with the boxlib frontend !
This seems fine to me as a non-expert of this frontend (and the codes it relates too), but I'd very much like @zingale's opinion on this (or possibly recommendations for any other boxlib experts).
I think we should also clearly state how the inheritance hierarchy is designed: is it reflecting how the supported codes relate to each other ? is it a pure abstraction aiming for maximal code reuse ? is it purely historical ? anything else ?
I will test this today (and I can test Nyx). @ax3l can you test WarpX on this PR? |
I've confirmed that this works with Nyx, Castro, and MAESTROeX without needing to use the hint keyword |
0746642
to
1363c0f
Compare
@yut23 can you cleanup the branch history ? It looks like the first commit is only made of changes that were incorporated already |
1363c0f
to
ec89762
Compare
ec89762
to
3af4aa7
Compare
Make `CastroDataset` and `MaestroDataset` inherit from `AMReXDataset` so they supercede it when calling yt.load. Also remove a useless `__init__` override from `AMReXDataset`.
3af4aa7
to
3ae29b9
Compare
I actually think the change is small enough that we don't need too much extra manual validation. I'll give @ax3l an other week or so to tune in if he wants but otherwise I think I'll just merge this. |
PR Summary
Make
CastroDataset
andMaestroDataset
inherit fromAMReXDataset
so they supercede it when calling yt.load. This allows loading output files from those projects without needing to passhint
.I don't personally use Nyx, WarpX, or Orion, so any input from those projects would be appreciated.
PR Checklist