Skip to content

Commit

Permalink
temporal: Fix typos in doc and comments (#2352)
Browse files Browse the repository at this point in the history
These are just some changes from my local test of the semi-automated typo fixing script including fixes of some of my recent typos.
  • Loading branch information
wenzeslaus committed May 1, 2022
1 parent 8caeb7d commit c6665c6
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion python/grass/temporal/abstract_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def is_topology_build(self):
"""Check if the spatial and temporal topology was build
:return: A dictionary with "spatial" and "temporal" as keys that
have boolen values
have boolean values
"""
d = {}
d["spatial"] = self.is_spatial_topology_build()
Expand Down
4 changes: 2 additions & 2 deletions python/grass/temporal/abstract_space_time_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def get_granularity(self):
Granularity can be of absolute time or relative time.
In case of absolute time a string containing an integer
value and the time unit (years, months, days, hours, minuts,
value and the time unit (years, months, days, hours, minutes,
seconds). In case of relative time an integer value is expected.
:return: The granularity
Expand All @@ -321,7 +321,7 @@ def set_granularity(self, granularity):
Granularity can be of absolute time or relative time.
In case of absolute time a string containing an integer
value and the time unit (years, months, days, hours, minuts,
value and the time unit (years, months, days, hours, minutes,
seconds). In case of relative time an integer value is expected.
This method only modifies this object and does not commit
Expand Down
2 changes: 1 addition & 1 deletion python/grass/temporal/aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def aggregate_raster_maps(
absolute
:param count: The number to be attached to the basename of the new
created raster map
:param method: The aggreation method to be used by r.series
:param method: The aggregation method to be used by r.series
:param register_null: If true null maps will be registered in the space
time raster dataset, if false not
:param dbif: The temporal database interface to use
Expand Down
4 changes: 2 additions & 2 deletions python/grass/temporal/datetime_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def modify_datetime(
def adjust_datetime_to_granularity(mydate, granularity):
"""Modify the datetime object to fit the given granularity
- Years will start at the first of Januar
- Years will start at the first of January
- Months will start at the first day of the month
- Days will start at the first Hour of the day
- Hours will start at the first minute of an hour
Expand Down Expand Up @@ -794,7 +794,7 @@ def check_datetime_string(time_string, use_dateutil=True):

if has_dateutil and use_dateutil is True:
# First check if there is only a single number, which specifies
# relative time. dateutil will interprete a single number as a valid
# relative time. dateutil will interpret a single number as a valid
# time string, so we have to catch this case beforehand
try:
value = int(time_string)
Expand Down
2 changes: 1 addition & 1 deletion python/grass/temporal/list_stds.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def _write_csv(rows, column_names, separator, file=sys.stdout):
# pylint: disable=import-outside-toplevel
import csv

# Newlines handled by the CSV writter. Set according to the package doc.
# Newlines handled by the CSV writer. Set according to the package doc.
with _open_output_file(file, newline="") as stream:
spamwriter = csv.writer(
stream,
Expand Down
2 changes: 1 addition & 1 deletion python/grass/temporal/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@ def get_number_of_semantic_labels(self):
return None

def get_semantic_labels(self):
"""Get the distinct semantic lables of registered maps
"""Get the distinct semantic labels of registered maps
The distinct semantic labels are not stored in the metadata table
and fetched on-the-fly
:return: None if not found
Expand Down
2 changes: 1 addition & 1 deletion python/grass/temporal/temporal_granularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ def gran_to_gran(from_gran, to_gran="days", shell=False):
"""

def _return(output, tounit, shell):
"""Fuction to return the output"""
"""Function to return the output"""
if shell:
return output
else:
Expand Down
2 changes: 1 addition & 1 deletion python/grass/temporal/temporal_vector_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def set_temporal_extent_list(self, maplist, topolist=["EQUAL"], temporal="l"):
other map list and given temporal operator.
:param maplist: List of map objects for which relations has been build
correctely.
correctly.
:param topolist: List of strings of temporal relations.
:param temporal: The temporal operator specifying the temporal
extent operation (intersection, union, disjoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def test_single_map_simple_operator(self):
def test_single_map_complex_operator_right_ts(self):
"""Test implicit aggregation
TODO: Ist this the correct result? Implicit aggregation and full permutation?
TODO: Is this the correct result? Implicit aggregation and full permutation?
R = singletmap {+,equal,r} A
Expand Down
2 changes: 1 addition & 1 deletion temporal/t.rast.algebra/t.rast.algebra.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h3>TEMPORAL RELATIONS</h3>
started A ------
B ----

finishs A ----
finishes A ----
B ------

finished A ------
Expand Down
6 changes: 3 additions & 3 deletions temporal/t.rast.list/tests/t_rast_list_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def test_yaml(space_time_raster_dataset):


@pytest.mark.parametrize(
"separator,delimeter", [(None, ","), (",", ","), (";", ";"), ("tab", "\t")]
"separator,delimiter", [(None, ","), (",", ","), (";", ";"), ("tab", "\t")]
)
def test_csv(space_time_raster_dataset, separator, delimeter):
def test_csv(space_time_raster_dataset, separator, delimiter):
"""Check CSV can be parsed with different separators"""
columns = ["name", "start_time"]
text = gs.read_command(
Expand All @@ -84,7 +84,7 @@ def test_csv(space_time_raster_dataset, separator, delimeter):
io_string = io.StringIO(text)
reader = csv.DictReader(
io_string,
delimiter=delimeter,
delimiter=delimiter,
quotechar='"',
doublequote=True,
lineterminator="\n",
Expand Down
2 changes: 1 addition & 1 deletion temporal/t.rast.to.rast3/t.rast.to.rast3.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def main():
# In case of days, hours, minutes and seconds, a double number
# is used to represent days and fracs of a day

# Space time voxel cubes with montly or yearly granularity can not be
# Space time voxel cubes with monthly or yearly granularity can not be
# mixed with other temporal units

# Compatible temporal units are : days, hours, minutes and seconds
Expand Down
2 changes: 1 addition & 1 deletion temporal/t.rast.what/t.rast.what.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def main(options, flags):
# in parallel

# First estimate the number of maps per process. We use 400 maps
# simultaniously as maximum for a single process
# simultaneously as maximum for a single process

num_loops = int(num_maps / (400 * nprocs))
remaining_maps = num_maps % (400 * nprocs)
Expand Down
2 changes: 1 addition & 1 deletion temporal/t.select/t.select.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h3>TEMPORAL RELATIONS</h3>
started A ------
B ----

finishs A ----
finishes A ----
B ------

finished A ------
Expand Down
2 changes: 1 addition & 1 deletion temporal/t.vect.algebra/t.vect.algebra.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h3>TEMPORAL RELATIONS</h3>
started A ------
B ----

finishs A ----
finishes A ----
B ------

finished A ------
Expand Down
2 changes: 1 addition & 1 deletion temporal/t.vect.what.strds/test.t.vect.what.strds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ r.mapcalc --o expr="prec_4 = 400"
r.mapcalc --o expr="prec_5 = 500.0"
r.mapcalc --o expr="prec_6 = 600.0"

v.random --o -z output=soil_1 n=5 zmin=0 zmax=100 column=heigh seed=1
v.random --o -z output=soil_1 n=5 zmin=0 zmax=100 column=height seed=1
v.random --o -z output=soil_2 n=5 zmin=0 zmax=100 column=height seed=2
v.random --o -z output=soil_3 n=5 zmin=0 zmax=100 column=height seed=3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ r.mapcalc --o expr="prec_4 = 400"
r.mapcalc --o expr="prec_5 = 500.0"
r.mapcalc --o expr="prec_6 = 600.0"

v.random --o -z output=soil_1 npoints=5 zmin=0 zmax=100 column=heigh seed=1
v.random --o -z output=soil_1 npoints=5 zmin=0 zmax=100 column=height seed=1
v.random --o -z output=soil_2 npoints=5 zmin=0 zmax=100 column=height seed=2
v.random --o -z output=soil_3 npoints=5 zmin=0 zmax=100 column=height seed=3

Expand Down

0 comments on commit c6665c6

Please sign in to comment.