Skip to content

Simplify clocks API #41

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

Merged
merged 3 commits into from
May 9, 2018
Merged

Simplify clocks API #41

merged 3 commits into from
May 9, 2018

Conversation

benbovy
Copy link
Member

@benbovy benbovy commented May 8, 2018

Closes #35.

  • High-level API for generating clock coordinate data (i.e., start, end, step arguments) is not supported anymore. This could be added back in a future release in a different, cleaner form. The new API is more consistent with how we set coordinates in xarray.
  • auto_adjust clock coordinate labels has been removed (an error is
    raised instead). A cleaner implementation should be added back in a future release (e.g., with options like 'nearest' but also 'intersection' to simply exclude invalid labels).
  • It is now possible to use Dataset.xsimlab.update_clocks to update only some clock
    coordinates (previously all clock coordinates were dropped first).

benbovy added 3 commits May 8, 2018 17:44
- High-level API for generating clock coordinate data is not supported
  anymore
- auto_adjust clock coordinate labels has been removed (an error is
  raised instead)
- It is possible to use update_clocks to update only some clock
  coordinates (all clock coordinates are not dropped first anymore)
@benbovy benbovy merged commit 6e69d82 into master May 9, 2018
@benbovy benbovy deleted the simplify-clock-api branch December 11, 2019 08:57
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.

1 participant