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

Fix the --enable-proj flag for landsat's convert command #94

Merged
merged 3 commits into from
May 27, 2021
Merged

Fix the --enable-proj flag for landsat's convert command #94

merged 3 commits into from
May 27, 2021

Conversation

gadomski
Copy link
Member

While reviewing #91, I discovered that the landsat convert --enable-proj flag was not working. This PR adds an initially-failing test and a fix.

I implemented this fix to keep as much existing behavior as possible, namely keeping the --enable-proj as a flag. However, the more click-y way of doing this would be to switch to a --proj/--no-proj flag. If the reviewer thinks that --proj/--no-proj would be better, it wouldn't be hard to do that instead, but it would require changing a couple more tests (and possibly downstream users' cli arguments).

@codecov-commenter
Copy link

codecov-commenter commented Apr 28, 2021

Codecov Report

Merging #94 (d361ae5) into master (5be2be0) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #94   +/-   ##
=======================================
  Coverage   84.89%   84.89%           
=======================================
  Files          81       81           
  Lines        2463     2463           
=======================================
  Hits         2091     2091           
  Misses        372      372           
Impacted Files Coverage Δ
stactools_landsat/stactools/landsat/commands.py 96.66% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5be2be0...d361ae5. Read the comment docs.

@gadomski gadomski requested a review from lossyrob April 29, 2021 12:03
@gadomski gadomski added this to the v0.1.6 milestone May 6, 2021
gadomski added 3 commits May 24, 2021 06:49
This was breaking click's option handling, making the `--enable-proj`
flag not work.
--enable-proj is tested elsewhere, and this was breaking the convert
test because the USGS files required to set the projection information
are behind a web login.
@gadomski gadomski merged commit 4f2426b into stac-utils:master May 27, 2021
@gadomski gadomski deleted the fix/landsat-enable-proj branch May 27, 2021 17:45
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