This change to scipy's netcdf module in scipy v1.12 causes simsopt's netcdf-writing functions to fail when setting scalar (i.e. 0D) values. I'm not sure why that change was made to scipy because numpy.ndarray.itemset does not appear to be deprecated. Anyhow, this pull request makes simsopt's netcdf routines work with scipy 1.12, while also working with earlier scipy versions. No changes to the required versions of numpy or scipy for simsopt are needed.
This change to scipy's netcdf module in scipy v1.12 causes simsopt's netcdf-writing functions to fail when setting scalar (i.e. 0D) values. I'm not sure why that change was made to scipy because
numpy.ndarray.itemset
does not appear to be deprecated. Anyhow, this pull request makes simsopt's netcdf routines work with scipy 1.12, while also working with earlier scipy versions. No changes to the required versions of numpy or scipy for simsopt are needed.