stellaGK / stella

stella is a flux tube gyrokinetic code for micro-stability and turbulence simulations of strongly magnetised plasma.
https://stellagk.github.io/stella/
Other
21 stars 10 forks source link

Changed netcdf package from scipy to netCDF4 to allow for compatibili… #90

Closed mrhardman closed 2 years ago

mrhardman commented 2 years ago

…ty with current netcdf output

Executing

$ python3 kspectra_plots.py

On my favourite stella *.out.nc file leads to the following error

Traceback (most recent call last): File "kspectra_plots.py", line 3, in from stella_data import time, ntime, outdir, nakx, naky, kx, ky TypeError: Error: *.out.nc is not a valid NetCDF 3 file

This is fixed with this pull request