Skip to content
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
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ per-file-ignores =
# E722 do not use bare 'except'
# W605 invalid escape sequence
# F821 undefined name 'unicode'
# F841 local variable assigned to but never used
# E741 ambiguous variable name 'l'
man/build_html.py: E501
man/build_md.py: E501
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ ignore = [
"F811", # redefined-while-unused
"F821", # undefined-name
"F822", # undefined-export
"F841", # unused-variable
"FBT001", # boolean-type-hint-positional-argument
"FBT002", # boolean-default-value-positional-argument
"FBT003", # boolean-positional-value-in-call
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def test_common_granularity_2(self) -> None:
"""Testing the common granularity function year to month sampling."""
ta = tgis.TemporalAlgebraParser(run=True, debug=True)
expr = "R = A : C"
ret = ta.setup_common_granularity(expression=expr)
ta.setup_common_granularity(expression=expr)

ta.parse(expression=expr, basename="r", overwrite=True)

Expand All @@ -197,7 +197,7 @@ def test_common_granularity_3(self) -> None:
"""Testing the common granularity function with gaps."""
ta = tgis.TemporalAlgebraParser(run=True, debug=True)
expr = "R = A : D"
ret = ta.setup_common_granularity(expression=expr)
ta.setup_common_granularity(expression=expr)

ta.parse(expression=expr, basename="r", overwrite=True)

Expand All @@ -216,7 +216,7 @@ def test_common_granularity_4(self) -> None:
"""Testing the common granularity function year to month with gaps."""
ta = tgis.TemporalAlgebraParser(run=True, debug=True)
expr = "R = C : D"
ret = ta.setup_common_granularity(expression=expr)
ta.setup_common_granularity(expression=expr)

ta.parse(expression=expr, basename="r", overwrite=True)

Expand All @@ -235,7 +235,7 @@ def test_common_granularity_4(self) -> None:
"""Testing the common granularity function year to month with gaps."""
ta = tgis.TemporalAlgebraParser(run=True, debug=True)
expr = "R = C : D"
ret = ta.setup_common_granularity(expression=expr)
ta.setup_common_granularity(expression=expr)

ta.parse(expression=expr, basename="r", overwrite=True)

Expand All @@ -254,7 +254,7 @@ def test_common_granularity_5(self) -> None:
"""Testing the common granularity function year to month with gaps."""
ta = tgis.TemporalAlgebraParser(run=True, debug=True)
expr = "R = A : C : D"
ret = ta.setup_common_granularity(expression=expr)
ta.setup_common_granularity(expression=expr)

ta.parse(expression=expr, basename="r", overwrite=True)

Expand All @@ -273,7 +273,7 @@ def test_common_granularity_6(self) -> None:
"""Testing the common granularity function year to month with gaps."""
ta = tgis.TemporalAlgebraParser(run=True, debug=True)
expr = "R = if(start_month(A) > 2, A : C : D)"
ret = ta.setup_common_granularity(expression=expr)
ta.setup_common_granularity(expression=expr)

ta.parse(expression=expr, basename="r", overwrite=True)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def test_temporal_conditional_13(self) -> None:

D = tgis.open_old_stds("R", type="strds")
D.select()
maplist = D.get_registered_maps_as_objects()
D.get_registered_maps_as_objects()
self.assertEqual(D.metadata.get_number_of_maps(), 4)
self.assertEqual(D.metadata.get_min_min(), 1)
self.assertEqual(D.metadata.get_max_max(), 4)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def setUpClass(cls) -> None:
"""Initiate the temporal GIS and set the region"""
tgis.init(True) # Raise on error instead of exit(1)
cls.use_temp_region()
ret = gs.run_command(
gs.run_command(
"g.region", n=80.0, s=0.0, e=120.0, w=0.0, t=100.0, b=0.0, res=10.0
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ def test_tmap_function1(self) -> None:

D = tgis.open_old_stds("R", type="strds")
D.select()
maplist = D.get_registered_maps_as_objects()
D.get_registered_maps_as_objects()
self.assertEqual(D.metadata.get_number_of_maps(), 1)
self.assertEqual(D.metadata.get_min_min(), 99)
self.assertEqual(D.metadata.get_max_max(), 99)
Expand All @@ -633,7 +633,7 @@ def test_tmap_function2(self) -> None:

D = tgis.open_old_stds("R", type="strds")
D.select()
maplist = D.get_registered_maps_as_objects()
D.get_registered_maps_as_objects()
self.assertEqual(D.metadata.get_number_of_maps(), 1)
self.assertEqual(D.metadata.get_min_min(), 100)
self.assertEqual(D.metadata.get_max_max(), 100)
Expand All @@ -650,7 +650,7 @@ def test_map_function1(self) -> None:

D = tgis.open_old_stds("R", type="strds")
D.select()
maplist = D.get_registered_maps_as_objects()
D.get_registered_maps_as_objects()
self.assertEqual(D.metadata.get_number_of_maps(), 4)
self.assertEqual(D.metadata.get_min_min(), 101)
self.assertEqual(D.metadata.get_max_max(), 104)
Expand All @@ -667,7 +667,7 @@ def test_map_function2(self) -> None:

D = tgis.open_old_stds("R", type="strds")
D.select()
maplist = D.get_registered_maps_as_objects()
D.get_registered_maps_as_objects()
self.assertEqual(D.metadata.get_number_of_maps(), 4)
self.assertEqual(D.metadata.get_min_min(), 100)
self.assertEqual(D.metadata.get_max_max(), 400)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def test_temporal_extent1(self) -> None:
self.assertTrue(D.is_in_db())
D.select()
D.print_info()
maplist = D.get_registered_maps_as_objects()
D.get_registered_maps_as_objects()
self.assertEqual(D.metadata.get_number_of_maps(), 2)
start, end = D.get_absolute_time()
self.assertEqual(start, datetime.datetime(2001, 1, 2))
Expand Down
4 changes: 3 additions & 1 deletion raster/r.terraflow/testsuite/test_r_terraflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ def test_univar_mfd(self):
coeff_var=47.8572213922083
sum=8341670.75914752"""

# cls.assertRasterFitsUnivar(raster="terra_flooded", reference=terra_flooded_univar, precision=3)
self.assertRasterFitsUnivar(
raster="terra_flooded", reference=terra_flooded_univar, precision=3
)
self.assertRasterFitsUnivar(
raster="terra_flowdir", reference=terra_flowdir_univar, precision=3
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def setUpClass(cls):
os.putenv("GRASS_OVERWRITE", "1")
tgis.init(True) # Raise on error instead of exit(1)
cls.use_temp_region()
ret = gs.run_command(
gs.run_command(
"g.region", n=80.0, s=0.0, e=120.0, w=0.0, t=100.0, b=0.0, res=10.0
)

Expand Down
1 change: 1 addition & 0 deletions vector/v.generalize/testsuite/v_generalize_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ def test_chaiken_algorithm(self):
tolerance,
f"Midpoint {midpoint} of segment {i} is not close to any point in the generalized line.",
)
self.assertIsNotNone(closest_point)
# Testing the number of vertices after smoothing
input_vertices = self.count_vertices("test_chaiken")
output_vertices = self.count_vertices("chaiken_line")
Expand Down
Loading