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

Fix converting other DateTime objects to seconds #133

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

ph-kev
Copy link
Member

@ph-kev ph-kev commented Oct 18, 2024

closes #131 - This PR fixes the issue of converting from other DateTime objects to seconds for directly loading a .nc file as a OutputVar. In particular, this PR handles the conversion by reinterpreting dates of subtypes of CFTime.AbstractCFDateTime as Dates.DateTime objects.

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.20%. Comparing base (a189286) to head (c98bd88).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #133   +/-   ##
=======================================
  Coverage   98.19%   98.20%           
=======================================
  Files          11       11           
  Lines        1110     1112    +2     
=======================================
+ Hits         1090     1092    +2     
  Misses         20       20           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ph-kev ph-kev requested a review from Sbozzolo October 18, 2024 22:52
@ph-kev ph-kev merged commit b967146 into CliMA:main Oct 18, 2024
9 checks passed
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.

Add conversion between DateTime[x] to DateTime
2 participants