Jeff Whitaker
Jeff Whitaker
Trying to reproduce this on my laptop, but I've never used either of these IDEs. I've got a conda environment configured with the mpi-enabled netcdf4-python. What should I do to...
OK, I ran this test script ```python import netCDF4, numpy, mpi4py print('netcdf4-python version: %s'%netCDF4.__version__) print('HDF5 lib version: %s'%netCDF4.__hdf5libversion__) print('netcdf lib version: %s'%netCDF4.__netcdf4libversion__) print('mpi4py version: %s'%mpi4py.__version__) print('numpy version: %s'%numpy.__version__) print('parallel features:...
I'm using python 3.8.5 also.
works within the debugger in VSCode for me. Any particular reason you can't use conda?
OK, understood. Not sure how to proceed from here. Please do report back if you are able to track this down.
One random thought - you could try editing _netCDF4.pyx and changing ``` cimport mpi4py.MPI as MPI ``` to ``` import mpi4py.MPI as MPI ```
OK, thanks for trying. My guess is that there is some inconsistency with the C runtimes being used for the different libraries (hdf5, netcdf, mpi) and the python extension modules.
There is a 'persist' kwarg to nc.Dataset which is supposed to write 'diskless' files to disk upon close. However, it doesn't appear to work when the file contents are taken...
Like @dopplershift said, it's consistent with python open.
As a consequence of this change, the high-level interface could be pure python.