Skip to content

Commit

Permalink
wxGUI: Fix flake8 F403, F405, F821 and F841 errors in statistics.py (#…
Browse files Browse the repository at this point in the history
…4934)

* update

* update

* sort
  • Loading branch information
arohanajit authored Jan 13, 2025
1 parent 30de3bd commit 07030e3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
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 byref, c_char_p, c_float, c_int

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_color,
I_iclass_statistics_get_histo,
I_iclass_statistics_get_max,
I_iclass_statistics_get_mean,
I_iclass_statistics_get_min,
I_iclass_statistics_get_name,
I_iclass_statistics_get_nbands,
I_iclass_statistics_get_ncells,
I_iclass_statistics_get_nstd,
I_iclass_statistics_get_range_max,
I_iclass_statistics_get_range_min,
I_iclass_statistics_get_stddev,
)
except ImportError:
sys.stderr.write(_("Loading imagery lib failed"))

from grass.pydispatch.signal import Signal
Expand Down

0 comments on commit 07030e3

Please sign in to comment.