-
Notifications
You must be signed in to change notification settings - Fork 28
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
Create a check for if an object is a JSON or NWIS Response object in extract_nwis_df #37
Comments
This sounds good to me.
|
I'll try it out and see how it goes! |
Great! @nkorinek One thing that most people don't seem to know about is that you can submit your pull request almost immediately after creating your new branch. You don't have to wait until you've actually added any new code. Most people like to wait until everything is perfect, but the problem with that is that nobody knows that you are working on something, so you can get duplication. Think of two outfielders in baseball going for the same fly ball. They start talking to each other BEFORE they catch the ball, so they don't both try to catch it, or both assume the other person has it... (sportsball analogies aren't my personal strength) Also, if you submit the PR right away, I can give you suggestions if you get stuck on something. Good luck! |
Sounds good! I'll open that up as soon as possible, probably over the weekend sometime. |
Closed with cf10f95. |
Thanks @mroberge, sorry I didn't get a chance to work on it! |
Not an issue, just a recommendation! Recently, hydrofunctions extract_nwis_df changed to accept a JSON of a response instead of the raw response object. The line to turn the response to a JSON is still in the code, but commented out. It would possibly easier to use the function if it took either a JSON or a raw response. A simple type check at the top should make that doable. Something like:
Just a thought!
The text was updated successfully, but these errors were encountered: