Skip to content

Commit

Permalink
wxGUI: FIxed F841 is iscatt/core_c.py (#4430)
Browse files Browse the repository at this point in the history
* fixed 841

* updated flake8
  • Loading branch information
arohanajit authored Oct 2, 2024
1 parent 1b639db commit f0a997c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ per-file-ignores =
gui/scripts/d.wms.py: E501
gui/wxpython/image2target/*: F841, E722
gui/wxpython/image2target/g.gui.image2target.py: E501, F841
gui/wxpython/iscatt/*: F841, E722
gui/wxpython/iscatt/*: F841
gui/wxpython/lmgr/frame.py: F841, E722
# layertree still includes some formatting issues (it is ignored by Black)
gui/wxpython/lmgr/layertree.py: E722, E266, W504, E225
Expand Down
3 changes: 1 addition & 2 deletions gui/wxpython/iscatt/core_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
struct_scCats,
)
except ImportError as e:
sys.stderr.write(_("Loading ctypes libs failed"))
sys.stderr.write(_("Loading ctypes libs failed: %s") % e)

from core.gcmd import GException
from grass.script import encode
Expand Down Expand Up @@ -288,7 +288,6 @@ def _updateCatRastProcess(patch_rast, region, cat_rast, output_queue):


def _rasterize(polygon, rast, region, value, output_queue):
pol_size = len(polygon) * 2
pol = np.array(polygon, dtype=float)

c_uint8_p = POINTER(c_uint8)
Expand Down

0 comments on commit f0a997c

Please sign in to comment.