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

docs: fixed E265 from image2target/ #4399

Merged
merged 4 commits into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ per-file-ignores =
gui/wxpython/gui_core/ghelp.py: E722
gui/wxpython/gui_core/gselect.py: E722
gui/wxpython/gui_core/widgets.py: E722
gui/wxpython/image2target/*: F841, E722, E265
gui/wxpython/image2target/g.gui.image2target.py: E501, E265, F841
gui/wxpython/image2target/*: F841, E722
gui/wxpython/image2target/g.gui.image2target.py: E501, F841
gui/wxpython/iscatt/*: F841, E722, F405, F403
gui/wxpython/lmgr/frame.py: F841, E722
# layertree still includes some formatting issues (it is ignored by Black)
Expand Down
111 changes: 0 additions & 111 deletions gui/wxpython/image2target/g.gui.image2target.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,71 +30,6 @@
# % keyword: GCP
# %end

##%option G_OPT_M_LOCATION
##% key: source_project
##% label: The name of the source project (has no projection)
##% description: The source project (location) has no CRS
###% section: source
##% required: yes
##%end

##%option G_OPT_M_MAPSET
##% key: source_mapset
##% label: The name of the source mapset (has no projection)
##% description: The name of the source mapset (has no projection)
###% section: source
##% required: yes
##%end

##%option G_OPT_I_GROUP
##% key: source_group
##% required: yes
##% section: source
##%end

##%option G_OPT_R_INPUT
##% key: source_image
##% required: yes
###% section: source
##%end

##%option G_OPT_R_INPUT
##% key: target_image
##% label: The name of the image that is already georeferenced used to find location of GCPs
##% description: The name of the image that is already georeferenced used to find the location of GCPs
###% section: target
##% required: no
##%end

##%option
##% key: camera
##% type: string
##% label: The name of the camera (generated in i.ortho.camera)
##% description: The name of the camera (generated in i.ortho.camera)
##% required: yes
###% section: parameters
##%end

##%option
##% key: order
##% type: string
##% label: The rectification order
##% description: The rectification order
##% required: yes
##% answer: 1
###% section: parameters
##%end

##%option
##% key: extension
##% type: string
##% label: The name of the output files extension
##% description: The name of the output files extension
##% required: yes
##% answer: _ii2t_out
##% section: target
##%end


"""
Module to run GCP management tool as stadalone application.
Expand Down Expand Up @@ -129,54 +64,8 @@ def main():
else:
os.environ["GRASS_RENDER_IMMEDIATE"] = "cairo"

# if options["source_location"]:
# src_loc = options["source_location"]
# else:
# gscript.fatal(_("No georeferenced source location provided"))

# if options["source_mapset"]:
# src_mpt = options["source_mapset"]
# else:
# gscript.fatal(_("No georeferenced source mapset provided"))

# if options["source_group"]:
# src_grp = options["source_group"]
# else:
# gscript.fatal(_("Please provide a source group name to process"))

# if options['source_image']:
# src_ras = options["source_image"]
# else:
# gscript.fatal(_("Please provide a source image map name to process"))

# if options["target_image"]:
# tgt_ras = options["target_image"]
# else:
# gscript.fatal(_("No georeferenced target map provided"))

# if options["camera"]:
# camera = options["camera"]
# else:
# gscript.fatal(_(
# "Please provide a camera name (generated by i.ortho.camera)"
# ))

# if options["order"]:
# order = options["order"]
# else:
# gscript.fatal(_("Please provive an order value"))

# if options["extension"]:
# extension = options["extension"]
# else:
# gscript.fatal(_("Please provide an output file extension"))

app = wx.App()

# wizard = GCPWizard(parent=None, giface=StandaloneGrassInterface(),
# srcloc=src_loc,srcmpt=src_mpt,srcgrp=src_grp,srcras=src_ras,
# tgtras=tgt_ras,camera=camera, order=order, extension=extension)

wizard = GCPWizard(parent=None, giface=StandaloneGrassInterface())
app.MainLoop()

Expand Down
Loading