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

style: use overwrite and not 'o' flag in Python scripts #4175

Closed
wants to merge 2 commits into from
Closed
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
8 changes: 4 additions & 4 deletions raster/r.in.gdal/testsuite/test_r_in_gdal.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def test_netCDF_3d_2(self):
input="data/elevation3d.nc",
num_digits=0,
offset=100,
flags="o",
overwrite=True,
output="test_gdal_import_map",
)

Expand Down Expand Up @@ -220,7 +220,7 @@ def test_netCDF_3d_3(self):
input="data/elevation3d.nc",
num_digits=5,
offset=100,
flags="o",
overwrite=True,
output="test_gdal_import_map",
)

Expand Down Expand Up @@ -259,7 +259,7 @@ def test_netCDF_3d_4(self):
"Import netCDF Format",
input="data/elevation3d.nc",
num_digits="3",
flags="o",
overwrite=True,
band=2,
output="test_gdal_import_map",
)
Expand Down Expand Up @@ -290,7 +290,7 @@ def test_netCDF_3d_5(self):
input="data/elevation3d.nc",
num_digits=10,
offset=100,
flags="o",
overwrite=True,
map_names_file="map_names_file.txt",
output="test_gdal_import_map",
)
Expand Down
13 changes: 8 additions & 5 deletions raster/r.support/r.support.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ <h2>DESCRIPTION</h2>
history, semantic label elements and title is supported.
Category labels can also be copied from another raster map.

<h3>Raster band management</h3>
<h3>Raster semantic labels and band management</h3>

Raster semantic label concept is similar to dimension name in other GIS and
remote sensing applications. Most common usage will be assigning a
remote sensing platform sensor band ID to the raster, although any
identifier is supported. Raster semantic label is suggested to work with
imagery classification tools.<br>
remote sensing applications. Most common usage will be assigning a remote
sensing platform sensor band identifier to the raster map metadata, although
any identifier is supported (see <a href="i.band.library.html">i.band.library</a>).
Raster semantic label is suggested to work with imagery classification tools.

<h2>EXAMPLES</h2>

Expand Down Expand Up @@ -57,12 +58,14 @@ <h2>NOTES</h2>
<h2>SEE ALSO</h2>

<em>
<a href="i.band.library.html">i.band.library</a>,
<a href="r.category.html">r.category</a>,
<a href="r.describe.html">r.describe</a>,
<a href="r.info.html">r.info</a>,
<a href="r.null.html">r.null</a>,
<a href="r.region.html">r.region</a>,
<a href="r.report.html">r.report</a>,
<a href="r.semantic.label.html">r.semantic.label</a>,
<a href="r.timestamp.html">r.timestamp</a>
</em>

Expand Down
10 changes: 5 additions & 5 deletions scripts/i.band.library/i.band.library.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ <h2>Band reference and semantic label relation</h2>
<h2>NOTES</h2>

<p>
Semantic label concept is supported by temporal GRASS modules,
see <em><a href="t.register.html#support-for-band-references">t.register</a></em>,
<em><a href="t.rast.list.html#filtering-the-result-by-band-references">t.rast.list</a></em>,
<em><a href="t.info.html#space-time-dataset-with-band-references-assigned">t.info</a></em>
and <em><a href="t.rast.mapcalc.html#band-reference-filtering">t.rast.mapcalc</a></em>
Semantic label concept is supported by temporal GRASS modules, see
<em><a href="t.register.html#support-for-semantic-labels">t.register</a></em>,
<em><a href="t.rast.list.html#filtering-the-result-by-semantic-label">t.rast.list</a></em>,
<em><a href="t.info.html#space-time-dataset-with-semantic-labels-assigned">t.info</a></em>
and <em><a href="t.rast.mapcalc.html#semantic-label-filtering">t.rast.mapcalc</a></em>
modules for examples.

<h3>Image collections</h3>
Expand Down
8 changes: 4 additions & 4 deletions scripts/r.semantic.label/r.semantic.label.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ <h2>NOTES</h2>
Semantic labels are supported by temporal GRASS modules. Name of
STRDS can be extended by band identifier in order to filter the result
by a semantic label. See
<em><a href="t.register.html#support-for-band-references">t.register</a></em>,
<em><a href="t.rast.list.html#filtering-the-result-by-band-references">t.rast.list</a></em>,
<em><a href="t.info.html#space-time-dataset-with-band-references-assigned">t.info</a></em>
and <em><a href="t.rast.mapcalc.html#band-reference-filtering">t.rast.mapcalc</a></em>
<em><a href="t.register.html#support-for-semantic-labels">t.register</a></em>,
<em><a href="t.rast.list.html#filtering-the-result-by-semantic-label">t.rast.list</a></em>,
<em><a href="t.info.html#space-time-dataset-with-semantic-labels-assigned">t.info</a></em>
and <em><a href="t.rast.mapcalc.html#semantic-label-filtering">t.rast.mapcalc</a></em>
modules for examples.

<h2>EXAMPLES</h2>
Expand Down
2 changes: 1 addition & 1 deletion scripts/v.db.reconnect.all/v.db.reconnect.all.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def main():
try:
gs.run_command(
"v.db.connect",
flags="o",
overwrite=True,
quiet=True,
map=vect,
layer=layer,
Expand Down
2 changes: 1 addition & 1 deletion scripts/v.unpack/v.unpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def main():
try:
grass.run_command(
"v.db.connect",
flags="o",
overwrite=True,
quiet=True,
driver=dbconn["driver"],
database=todb,
Expand Down
2 changes: 1 addition & 1 deletion vector/v.fill.holes/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def import_data(path, areas_name, areas_with_space_in_between, env):
"v.db.connect",
map=areas_with_space_in_between,
table=areas_with_space_in_between,
flags="o",
overwrite=True,
env=env,
)

Expand Down
Loading