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

Generalize CF encoding/decoding of datetime arrays to n-dimensions #43

Merged
merged 4 commits into from
Mar 4, 2014

Conversation

shoyer
Copy link
Member

@shoyer shoyer commented Mar 4, 2014

Note: This will conflict with PR #40 because they both deal with handling of datetimeindex objects. Whichever goes in last will need to be rebased.

or (data.dtype.kind == 'O'
and isinstance(utils.first_value(data), datetime))):
# encode datetime arrays into numeric arrays
(data, units, calendar) = utils.encode_cf_datetime(
Copy link
Contributor

Choose a reason for hiding this comment

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

as you pointed out in my pull request you should create a copy of encoding before modifying it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, yes :)

@shoyer
Copy link
Member Author

shoyer commented Mar 4, 2014

@akleeman Thanks for your feedback, I think I've resolved all of that with my new commits.

akleeman added a commit that referenced this pull request Mar 4, 2014
Generalize CF encoding/decoding of datetime arrays to n-dimensions
@akleeman akleeman merged commit 8e29657 into master Mar 4, 2014
@shoyer shoyer deleted the decode-n-dimensional-datetime64 branch March 4, 2014 23:24
keewis pushed a commit to keewis/xarray that referenced this pull request Jan 17, 2024
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v2.3.4...v2.4.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

None yet

2 participants