dvalters / fuse-netcdf

ESoWC project to develop a Python utility to mount NetCDF files as a file-system in user space. (FUSE)
Other
8 stars 3 forks source link

netCDF4 raises "Operation not allowed in define mode" exception when DATA_REPR is edited with Vim #43

Closed blazk closed 6 years ago

blazk commented 6 years ago

When opening DATA_REPR for editing, Vim is also creating ".DATA_REPR.swp" file in the variable directory. Fuse-netcdf will then attempt to create a variable attribute called ".DATA_REPR.swp". The attribute creating operation puts NetCDF into "define mode".

When I reconfigure Vim to not create swap files, the problem disappears.