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

Added alterative calendar support through netcdftime #21

Merged
merged 18 commits into from
Mar 8, 2018
Merged

Conversation

mcgibbon
Copy link
Owner

It seems that netcdftime has the support we need for alternative calendars. I would just tell users to use its objects, but it feels like it's missing a unified interface for creating objects with different calendars (netcdftime.datetime is just netcdftime.DatetimeProlepticGregorian), so I made one. It uses the standard Python datetime for the proleptic Gregorian calendar, and attempts to use netcdftime for other calendars. If netcdftime is not installed, it complains to the user. I also updated the documentation with all of this info. I only included basic tests for the datetimes, since these are extensively tested in netcdftime.

@codecov-io
Copy link

codecov-io commented Feb 24, 2018

Codecov Report

Merging #21 into master will increase coverage by 0.19%.
The diff coverage is 85.18%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #21      +/-   ##
==========================================
+ Coverage   74.94%   75.13%   +0.19%     
==========================================
  Files          14       15       +1     
  Lines        1257     1283      +26     
==========================================
+ Hits          942      964      +22     
- Misses        315      319       +4
Impacted Files Coverage Δ
sympl/__init__.py 100% <100%> (ø) ⬆️
sympl/_core/time.py 84% <84%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d14a696...0f05e8d. Read the comment docs.

@mcgibbon mcgibbon merged commit 0f05e8d into master Mar 8, 2018
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

3 participants