Skip to content

Commit

Permalink
Merge branch 'main' into rimport-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KandelN authored Jan 14, 2025
2 parents 0bffc66 + 07030e3 commit 6559c2d
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 6559c2d

Please sign in to comment.