Skip to content

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

Open
toppk wants to merge 1 commit into
paulokuong:masterfrom
toppk:features
Open

switch to namedtuple for coordinates parameters (**BREAKS API**)#7
toppk wants to merge 1 commit into
paulokuong:masterfrom
toppk:features

Conversation

@toppk
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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