Skip to content

Commit 4a209d8

Browse files
committed
python/grass/temporal: fix typos
Found via codespell
1 parent 25f76a7 commit 4a209d8

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

python/grass/temporal/abstract_space_time_dataset.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ def get_registered_maps_as_objects_by_granularity(self, gran=None, dbif=None):
11351135
if not maps:
11361136
return None
11371137

1138-
# We need to adjust the end time in case the the dataset has no
1138+
# We need to adjust the end time in case the dataset has no
11391139
# interval time, so we can catch time instances at the end
11401140
if self.get_map_time() != "interval":
11411141
if self.is_time_absolute():
@@ -1165,13 +1165,13 @@ def resample_maplist_by_granularity(maps, start, end, gran):
11651165
The temporal topology search order is as follows:
11661166
11671167
1. Maps that are equal to the actual granule are used
1168-
2. If no euqal found then maps that contain the actual granule
1168+
2. If no equal found then maps that contain the actual granule
11691169
are used
11701170
3. If no maps are found that contain the actual granule then maps
11711171
are used that overlaps the actual granule
11721172
4. If no overlaps maps found then overlapped maps are used
11731173
5. If no overlapped maps are found then maps are used that are
1174-
durin the actual granule
1174+
during the actual granule
11751175
11761176
11771177
Each entry in the resulting list is a list of

python/grass/temporal/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ def init(raise_fatal_error: bool = False, skip_db_version_check: bool = False):
706706
backup_howto = _(
707707
"Run t.upgrade command to upgrade your temporal database.\n"
708708
"Consider creating a backup of your temporal database to avoid "
709-
"loosing data in case something goes wrong.\n"
709+
"losing data in case something goes wrong.\n"
710710
)
711711
else:
712712
backup_howto = _(

python/grass/temporal/spatial_extent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ def meet_2d(self, extent) -> bool:
11821182
edge = "S"
11831183
edge_count += 1
11841184

1185-
# Meet a a single edge only
1185+
# Meet a single edge only
11861186
if edge_count != 1:
11871187
return False
11881188

python/grass/temporal/spatio_temporal_relationships.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def get_first(self):
409409
return self._first
410410

411411
def _build_internal_iteratable(self, maps, spatial) -> None:
412-
"""Build an iteratable temporal topology structure for all maps in
412+
"""Build an iterable temporal topology structure for all maps in
413413
the list and store the maps internally
414414
415415
Basically the "next" and "prev" relations will be set in the
@@ -429,7 +429,7 @@ def _build_internal_iteratable(self, maps, spatial) -> None:
429429
self._detect_first()
430430

431431
def _build_iteratable(self, maps, spatial) -> None:
432-
"""Build an iteratable temporal topology structure for
432+
"""Build an iterable temporal topology structure for
433433
all maps in the list
434434
435435
Basically the "next" and "prev" relations will be set in

python/grass/temporal/temporal_algebra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2849,7 +2849,7 @@ def p_t_var_expr_td_hash(self, t) -> None:
28492849
comp_op = t[2]
28502850
value = str(t[3])
28512851
for map_i in maplist:
2852-
# Evaluate time diferences and hash operator statements for each map.
2852+
# Evaluate time differences and hash operator statements for each map.
28532853
try:
28542854
td = map_i.map_value[0].td
28552855
boolname = eval(str(td) + comp_op + value)

python/grass/temporal/temporal_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def p_relation(self, t) -> None:
635635
t[0] = t[1]
636636

637637
def p_over(self, t) -> None:
638-
# The the over keyword
638+
# The over keyword
639639
"""
640640
relation : OVER
641641
"""

python/grass/temporal/testsuite/unittests_temporal_algebra_grs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def test_common_granularity_1(self) -> None:
175175
self.assertEqual(D.get_granularity(), "1 month")
176176

177177
def test_common_granularity_2(self) -> None:
178-
"""Testing the common granularity function year to month samping."""
178+
"""Testing the common granularity function year to month sampling."""
179179
ta = tgis.TemporalAlgebraParser(run=True, debug=True)
180180
expr = "R = A : C"
181181
ret = ta.setup_common_granularity(expression=expr)

0 commit comments

Comments
 (0)