Skip to content

Conversation

@dcherian
Copy link
Contributor

@pep8speaks
Copy link

Hello @dcherian! Thanks for submitting the PR.

Copy link
Member

@spencerkclark spencerkclark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! While you're at it, maybe for completeness you could add a test for converting an array of datetime.timedelta objects to np.timedelta64? Otherwise, pending a bug fix note addition to the what's new page, this looks good to me.

'without explicit dimension names. Pass a tuple of '
'(dims, data) instead.' % (name, data.ndim))
obj = Variable(name, obj, fastpath=True)
obj = Variable(name, data, fastpath=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch! I love it when fixes are this simple :)

@dcherian dcherian merged commit 2f0096c into pydata:master Oct 27, 2018
@dcherian dcherian deleted the fix/2512 branch October 27, 2018 16:34
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

Successfully merging this pull request may close these issues.

to_netcdf() fails because of datetime encoding

4 participants