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

wxGUI: Fix flake8 F403, F405, F821 and F841 errors in statistics.py #4934

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

arohanajit
Copy link
Contributor

This PR fixes several flake8 errors in statistics.py:

  • F403: Replaced from module import * with explicit imports to avoid undefined names.
  • F405: Explicitly imported names that were previously undefined or potentially imported from star imports.
  • F821: Added missing import sys statement to resolve undefined name 'sys'.
  • F841: Removed unused variable e.

Arohan Ajit added 2 commits January 10, 2025 04:07
@github-actions github-actions bot added GUI wxGUI related Python Related code is in Python labels Jan 10, 2025
Comment on lines +28 to +40
I_iclass_statistics_get_cat,
I_iclass_statistics_get_name,
I_iclass_statistics_get_color,
I_iclass_statistics_get_nbands,
I_iclass_statistics_get_ncells,
I_iclass_statistics_get_nstd,
I_iclass_statistics_get_min,
I_iclass_statistics_get_max,
I_iclass_statistics_get_range_min,
I_iclass_statistics_get_range_max,
I_iclass_statistics_get_mean,
I_iclass_statistics_get_stddev,
I_iclass_statistics_get_histo,
Copy link
Member

@echoix echoix Jan 10, 2025

Choose a reason for hiding this comment

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

Can you have these lines (only these ones, not the rest of the file) sorted with isort while we are adding them in? And maybe the line you added above too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI wxGUI related Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants