Skip to content

describe fails on datasets with char-type variables #56

@nikmolnar

Description

@nikmolnar

Trying to use describe (CLI or API) on a dataset with one or more char-type variables causes the following error:

  File "/Users/nikmolnar/projects/trefoil/trefoil/netcdf/describe.py", line 76, in describe
    'min': data.min().item(),
  File "/Users/nikmolnar/virtualenv/trefoil-_zYcxnHA/lib/python3.6/site-packages/numpy/core/_methods.py", line 29, in _amin
    return umr_minimum(a, axis, None, out, keepdims)
TypeError: cannot perform reduce with flexible type

I'm not advocating that we support rendering, or performing other analysis on char variables, but describe should ignore such variables and return information for other variables, instead of failing outright.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions