Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

describe fails on datasets with char-type variables #56

Open
nikmolnar opened this issue Jul 5, 2019 · 0 comments
Open

describe fails on datasets with char-type variables #56

nikmolnar opened this issue Jul 5, 2019 · 0 comments

Comments

@nikmolnar
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant