home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 144133156

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/593#issuecomment-144133156 https://api.github.com/repos/pydata/xarray/issues/593 144133156 MDEyOklzc3VlQ29tbWVudDE0NDEzMzE1Ng== 1217238 2015-09-29T17:46:04Z 2015-09-29T17:46:04Z MEMBER

My vote would be for catching and re-raising the error with a more informative message. Something like:

``` IndexError: the indexing operation you are attempting to perform is not valid on netCDF4.Variable object. Try loading your data into memory first by calling .load().

Original traceback: ... ```

This is automatic when you re-raise on Python 3. On Python 2, you'll have to use traceback.format_exc() to capture the traceback.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  108769226
Powered by Datasette · Queries took 0.599ms · About: xarray-datasette