1. 27 May, 2015 1 commit
    • Jason Swails's avatar
      Eliminate scipy RuntimeWarning when reading NetCDF restart files · 8908f33b
      Jason Swails authored
      Due to a bug that was uncovered in mdtraj with scipy's NetCDF implementation
      regarding mmapping, scipy started issuing the following warning if any NetCDF
      variable objects had references remaining after closing the file:
      
      /.../lib/python2.7/site-packages/scipy/io/netcdf.py:287:
      RuntimeWarning: Cannot close a netcdf_file opened with mmap=True, when
      netcdf_variables or arrays referring to its data still exist. All data arrays
      obtained from such files refer directly to data on disk, and must be copied
      before the file can be cleanly closed. (See netcdf_file docstring for more
      information on mmap.)
      
      We were already copying data to avoid segfaults on some scipy versions, but
      there were still references to variables that went out of scope shortly after
      the NetCDF file was closed.  Simply deleting these references gets rid of the
      warning.
      8908f33b
  2. 26 May, 2015 7 commits
  3. 21 May, 2015 1 commit
  4. 19 May, 2015 1 commit
  5. 18 May, 2015 4 commits
  6. 15 May, 2015 4 commits
  7. 14 May, 2015 3 commits
  8. 13 May, 2015 2 commits
  9. 12 May, 2015 2 commits
  10. 11 May, 2015 2 commits
  11. 06 May, 2015 6 commits
  12. 05 May, 2015 5 commits
  13. 04 May, 2015 2 commits