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

tools: Flake8 - Fix undefined variable 'b' in single-band case of write_cpp function #4352

Closed
wants to merge 2 commits into from

Conversation

arohanajit
Copy link
Contributor

@arohanajit arohanajit commented Sep 20, 2024

This PR addresses the issue with an undefined variable (b) in the single-band case of the write_cpp function.

Changes:

  • Replaced bands[b] with bands[0] in the single-band scenario.

Testing:

  • Ran flake8 and verified no further F821 errors.
  • F632 and W293 weren't found on running flake8 checks

Works towards #1522

@github-actions github-actions bot added Python Related code is in Python module imagery labels Sep 20, 2024
@arohanajit arohanajit changed the title Flake8 - Fix undefined variable 'b' in single-band case of write_cpp function tools: Flake8 - Fix undefined variable 'b' in single-band case of write_cpp function Sep 20, 2024
@echoix
Copy link
Member

echoix commented Sep 20, 2024

Would this be fixed by the major refactoring in #3886?

@arohanajit
Copy link
Contributor Author

I just had a look at #3866 and yeah that entire print has been removed so it'll be fixed on there

@arohanajit
Copy link
Contributor Author

Since, it looks like this issue would be fixed in #3866, I'll close this PR

@arohanajit arohanajit closed this Sep 20, 2024
@arohanajit arohanajit deleted the aajit-flake8-imagery branch September 20, 2024 20:53
@arohanajit arohanajit restored the aajit-flake8-imagery branch September 20, 2024 20:53
@arohanajit arohanajit deleted the aajit-flake8-imagery branch September 21, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imagery module Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants