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

Update argument list of download_tile_tms #157

Merged
merged 6 commits into from
Dec 13, 2019

Conversation

PallawiSinghal
Copy link
Contributor

As get_image_function in utils.py returns either of get_tile_tif or get_tile_wms or download_tile_tms. All three functions should have the same argument signature.

Fixes issue #156

@wronk
Copy link
Contributor

wronk commented Dec 10, 2019

Thanks @PallawiSinghal, I think I introduced this bug with the new authentication here

@wronk wronk requested review from wronk and drewbo December 10, 2019 00:00
Copy link
Contributor

@wronk wronk left a comment

Choose a reason for hiding this comment

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

LGTM, @drewbo, want to double check and merge?

@wronk
Copy link
Contributor

wronk commented Dec 10, 2019

Actually, I think we should solve this by adding imagery_offset to the kwargs dict rather than adding a new parameter to the image download functions. So this will involve

  1. removing imagery_offset from download_tile_tms, get_tile_tif and get_tile_wms
  2. Updating kwargs directly before it's passed on here
  3. Pulling imagery_offset from the kwargs here

@PallawiSinghal, let me know if you are able to handle this. Otherwise I can. Best way is probably just to open a new PR if you don't know how to revert this commit within this branch.

@wronk wronk added the bug Something isn't working label Dec 10, 2019
@wronk wronk self-requested a review December 10, 2019 00:35
Copy link
Contributor

@wronk wronk left a comment

Choose a reason for hiding this comment

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

☝️

@PallawiSinghal
Copy link
Contributor Author

PallawiSinghal commented Dec 10, 2019 via email

@PallawiSinghal
Copy link
Contributor Author

Made the changes

@wronk wronk self-requested a review December 11, 2019 18:16
Copy link
Contributor

@wronk wronk left a comment

Choose a reason for hiding this comment

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

Nitpick, but pylint is complaining about a trailing whitespace here. I added the suggested change in the code.

Other than that, LGTM if the checks pass

label_maker/images.py Outdated Show resolved Hide resolved
Co-Authored-By: Mark Wronkiewicz <wronk@developmentseed.org>
@wronk wronk merged commit 95dd33e into developmentseed:master Dec 13, 2019
@wronk
Copy link
Contributor

wronk commented Dec 13, 2019

Much thanks @PallawiSinghal!

Tests are still not passing, but I'm going to fix those right now. CircleCI checks aren't automatically being made visible (per #160), which is means nobody is getting the automatic feedback on their PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants