-
Notifications
You must be signed in to change notification settings - Fork 739
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
time_granularity -> freq #172
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool! Thanks for doing this :)
Can you just check that 'time_granularity' is gone from every folder?
I did. However, it looks like the host producing the docs is now failing, because in the notebook there is |
Job PR-172/2 is complete. |
Codecov Report
@@ Coverage Diff @@
## master #172 +/- ##
=======================================
Coverage 78.53% 78.53%
=======================================
Files 124 124
Lines 6783 6783
=======================================
Hits 5327 5327
Misses 1456 1456
|
@@ -84,7 +84,7 @@ def __init__( | |||
self, | |||
num_timeseries: int = 10, | |||
num_steps: int = 30, | |||
time_granularity: str = "1H", | |||
freq: str = "1H", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be kept backwards compatible in the json files for now. Use
freq: str = pydantic.Schema(..., alias='time_granularity', schema: '1H')
in order to allow use with existing metadata.json
files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI you can use # type: ignore
to silence mypy for this line.
Can you check the env module? (Especially the |
- Allow backwards-compatible metadata.json files. - Rename `time_freq` -> `freq`.
- Allow backwards-compatible metadata.json files. - Rename `time_freq` -> `freq`.
Issue #, if available: #134
Description of changes: s/time_granularity/freq/g
NOTE: this is a breaking change.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.