home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 59180424

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
59180424 MDU6SXNzdWU1OTE4MDQyNA== 341 Figure out what do to about the mmap argument to scipy.io.netcdf_file 1217238 closed 0     1 2015-02-27T02:31:26Z 2015-03-09T17:30:28Z 2015-03-09T17:30:28Z MEMBER      

When Travis runs tests with scipy but not netCDF4 installed, I get a warning like this: /home/travis/miniconda/envs/test_env/lib/python3.3/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.) https://travis-ci.org/xray/xray/jobs/52341561

Despite reading the docstring, I don't know entirely what to make of this argument. Is it possible to read data from disk lazily if mmap=False? If so, we should probably set that. If not, we may need to insert a .copy() somewhere in the scipy_ backend to ensure that data is properly loaded.

I have not been able to turn this warning into an actual error or test failure, so another possibility is that we don't need to worry about this.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/341/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 1.903ms · About: xarray-datasette