-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add yyyy() and nemo_yyyymm() date formatters. #40
Conversation
Handling nc_file_pattern from config as a str instead of a Path allows replacement of formatted date placeholders in both path and filename sections in a single .format() call. That make the code suitable to change from a loop to a list comprehension.
Caught by PyCharm code analyzer. Probably due to change in type annotations in xarray=2022.06.0.
Unfortunately, this in only part of what is required to handle the coarsened SalishSeaCast files. They are the product of |
This automatically installs the package as part of environment creation. Thanks to Michael for the tip that this is possible.
Use local timezone to resolve arrow pkg parsing exception, and add timezone offset to formatted date/time to make it location agnostic. re: issue #42
Codecov Report
@@ Coverage Diff @@
## main #40 +/- ##
==========================================
+ Coverage 96.53% 96.55% +0.02%
==========================================
Files 13 15 +2
Lines 1528 1539 +11
Branches 137 138 +1
==========================================
+ Hits 1475 1486 +11
Misses 50 50
Partials 3 3
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Add auto-generated API docs for date formatter functions so that they are discoverable for model profile creators.
This supports Greig's use of Reshapr for his coarsened SalishSeaCast hindcast work.
Also includes a refactoring of:
reshapr.utils.date_formatters
module