-
Notifications
You must be signed in to change notification settings - Fork 10
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 loading of grid files #307
base: master
Are you sure you want to change the base?
Conversation
There is a 'theta' variable in grid files, which prevents naming a dimension 'theta'. Also keep the 'psixy' variable in the Dataset - create a new variable referecing it rather than renaming it to make the 'psi_poloidal' coordinate.
Test failures seem to be numpy/xarray incompatibility issues. Maybe would be fixed by #303? |
I have tried checking out bout and #307, rebuilding, and running the scripts featured in #306 . I still see the error
What did I miss? |
If you |
Here's my check:
Which is odd, given that I have an editable hypnotoad install on your branch.
|
You need to pull the latest version, with the changes I added yesterday. |
My mistake. Now I have the following:
from snippet
|
Ah, that was just a mistake in the example plot script that I've forgotten to update. The line should have been grid["psi_poloidal"].bout.plot_regions() |
Plots are now generating from the example script on my local machine. Thanks for tracking down the issues! |
There is (now) a 'theta' variable in grid files, which prevents naming a dimension 'theta', so need to choose a different dimension name when opening a grid file.
Also keep the 'psixy' variable in the Dataset - create a new variable referecing it rather than renaming it to make the 'psi_poloidal' coordinate.
Along with boutproject/hypnotoad#187, fixes #306.
The
examples/plot_grid.py
script should work again.