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

switch to namedtuple for coordinates parameters (**BREAKS API**) #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toppk
Copy link
Contributor

@toppk toppk commented Jul 3, 2019

this change makes the api a little bit more consistent. it creates a object (a namedtuple) for coodinates, and replaces all uses of lat/long inside noaa_sdk.noaa with this type.

in addition to api breakage, there was a coordinate truncation done in get_observations() that I moved to points() (and implemented as string formatting).

happy to further explain or correct as needed.

@paulokuong
Copy link
Owner

@toppk thanks. I'm thinking may be you can overload the methods, making them able to accept both coordinate type and tuple.

@toppk
Copy link
Contributor Author

toppk commented Aug 23, 2019

which methods? all of them?

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.

2 participants