Open mrhardman opened 1 week ago
This problem was mostly caused by a change to hypnotoad which had resulted in a 't' dimension being created in grid files, which confused the function that detects whether the file being opened is 'dump', 'restart' or 'grid'. Also a name-conflict error.
There is a suggested example for plotting the fields of a
grid.nc
file https://github.com/boutproject/xBOUT/blob/master/examples/plot_grid.py. I have tried to use this code to plot the output from a simple Hyponotoad-generated grid. The result is that I received error messages which suggest that the advertised functionality is broken.To generate the grid I use (thanks to J. Omotani)
I then run the following script to try to plot
With this script, I get the following error
Trying to use
_open_grid
directly also failed. Fixing this would be very helpful for plotting Hypnotoad output.