Skip to content

Conversation

@andy-esch
Copy link
Contributor

It looks like contextily.calculate_zoom was changed to a private function, so I'm updating the example to work again.

BTW, contextily is so nice @darribas :)

@darribas
Copy link
Collaborator

darribas commented Aug 16, 2019

Excellent, thanks for the contribution!!! Glad you're finding the package useful!

@darribas
Copy link
Collaborator

Somehow the CI is now failing. I don't think it's related to this patch, but I'll investigate a bit further before merging...

@andy-esch
Copy link
Contributor Author

Yeah, looks like floating point precision or something like that? The test could be updated to use assert approximately equal. There's support for that in unittest, numpy, and others.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.938% when pulling 9cd45ef on andy-esch:update-example-zoom into d55bacd on darribas:master.

@darribas
Copy link
Collaborator

darribas commented Sep 7, 2019

OK I've pushed a couple of updates to the tests (replace assert for assert_array_almost_equal as well as new bounds to the extent because the underlying tiles appear to have changed (plotting the image looked good so assumed no other errors). Merging this now.

@darribas darribas merged commit dc6746f into geopandas:master Sep 7, 2019
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