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

Merged
merged 4 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ per-file-ignores =
gui/wxpython/animation/g.gui.animation.py: E501
gui/wxpython/tplot/g.gui.tplot.py: E501
gui/wxpython/iclass/g.gui.iclass.py: E501
gui/wxpython/iclass/statistics.py: F841, F405, F403
gui/wxpython/location_wizard/wizard.py: E722
gui/wxpython/mapdisp/main.py: E722
gui/wxpython/mapdisp/test_mapdisp.py: E501
Expand Down
21 changes: 18 additions & 3 deletions gui/wxpython/iclass/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,28 @@
"""

import os
from ctypes import *
import sys
from ctypes import c_int, c_char_p, c_float, byref

import grass.script as gs

try:
from grass.lib.imagery import *
except ImportError as e:
from grass.lib.imagery import (
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,
arohanajit marked this conversation as resolved.
Show resolved Hide resolved
)
except ImportError:
sys.stderr.write(_("Loading imagery lib failed"))

from grass.pydispatch.signal import Signal
Expand Down
Loading