8000 API cleanup by lymanepp · Pull Request #2 · raman325/pytomorrowio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

API cleanup #2

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 28 commits into from
Apr 15, 2022
Merged

API cleanup #2

merged 28 commits into from
Apr 15, 2022

Conversation

lymanepp
Copy link
Collaborator

Fix type annotations
Fix linting suggestions
API cleanup

@lymanepp
Copy link
Collaborator Author
lymanepp commented Apr 13, 2022

Hi @raman325, hopefully you don't mind getting a PR like this... My primary focus was finishing/fixing the type annotations. Along the way I refactored some duplicated code. I tried to avoid gratuitous changes. I wasn't able to grok the field filtering logic so I simplified it and back-checked it against the previous results for each valid timestep.

@@ -1,4 +1,4 @@
pip==19.2.3
pip>=21.0,<22.1
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raman325
Copy link
Owner

thanks for this PR. Totally open for changes and updates, and I will happily acknowledge that this library isn't very well architected, I just sought out to solve the problem. Given the number of changes it will take me a bit to review but at first glance this is a great improvement, thanks!

@lymanepp
Copy link
Collaborator Author

I added one unit test as a starting point.

@codecov-commenter
Copy link
codecov-commenter commented Apr 14, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@2a698c3). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #2   +/-   ##
=========================================
  Coverage          ?   71.16%           
=========================================
  Files             ?        7           
  Lines             ?      274           
  Branches          ?        0           
=========================================
  Hits              ?      195           
  Misses            ?       79           
  Partials          ?        0           

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 2a698c3...7095de1. Read the comment docs.

@raman325
Copy link
Owner

let me know when you feel like you are done with your changes, and a sincere thank you for this PR, it will be a huge help going forward!

type=TYPE_PRECIPITATION,
),
"hailBinary": FieldDefinition(
max_timestep=REALT 8000 IME,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was previously 30 mins, but API response indicates that it's only available for realtime.

@lymanepp
Copy link
Collaborator Author
lymanepp commented Apr 15, 2022

let me know when you feel like you are done with your changes, and a sincere thank you for this PR, it will be a huge help going forward!

There are still a few tests that need to be written, but I'm going to call it done for now. Let me know if you find anything that needs to be resolved.

I have a request--if/when you merge my changes, please combine my 99 commits into a single one.

@raman325 raman325 merged commit 2d4ca57 into raman325:master Apr 15, 2022
@lymanepp lymanepp deleted the api-cleanup branch April 15, 2022 02:56
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.

3 participants
0