issues: 317954266
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
317954266 | MDU6SXNzdWUzMTc5NTQyNjY= | 2085 | units = 'days' leads to timedelta64 for data variable | 10194086 | closed | 0 | 5 | 2018-04-26T09:47:11Z | 2018-04-26T16:44:25Z | 2018-04-26T15:55:09Z | MEMBER | Code Sample```python import numpy as np import xarray as xr def test_units(units):
test_units('seconds') test_units('second') test_units('minutes') test_units('minute') test_units('days') test_units('day') test_units('months') test_units('years') ``` Problem descriptionReturns:
Expected OutputI would expect type float for all of them. Or is this expected behaviour? I have a dataset that reports 'consecutive dry days' and the dataset creator correctly set the units of the data to 'days', but I don't want this to be decoded (but the time axis should).... Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2085/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |