Skip to content

Commit

Permalink
Merge pull request #20 from mundialis/fix_typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
juleshaas committed Feb 21, 2024
2 parents a071c1c + d498974 commit beb3a1e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/grass_gis_helpers/data_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def import_local_raster_data(
local_data_dir (str): Path to local data directory with VRT or TIF
files inside
native_res_flag (bool): True if native data resolution should be used
all_raster (list/dict): Empty list/dictonary where the imported rasters
all_raster (list/dict): Empty list/dictionary where the imported rasters
will be appended
rm_rasters (list): List with rasters which should be removed
band_dict (dict): Dictionary with band number and names, if none only
Expand Down Expand Up @@ -156,7 +156,7 @@ def import_local_raster_data(
ns_res = cur_reg["nsres"]
ew_res = cur_reg["ewres"]
# import data for AOI
# TODO parallize local data import for multi TIFs/VRTs
# TODO parallelize local data import for multi TIFs/VRTs
for i, raster_file in enumerate(raster_files):
# set aoi if it is given with current resolution
if aoi and aoi != "":
Expand Down Expand Up @@ -345,7 +345,7 @@ def import_local_xyz_files(
aoi (str): Vector map with area of interest
basename (str): Basename for imported rasters
local_data_dir (str): Path to local data directory with XYZ files
all_raster (list/dict): empty list/dictonary where the imported rasters
all_raster (list/dict): empty list/dictionary where the imported rasters
will be appended
Returns:
imported_local_data (bool): True if local data imported, otherwise False
Expand All @@ -360,7 +360,7 @@ def import_local_xyz_files(
)

# import data for AOI
# TODO parallize local data import
# TODO parallelize local data import
# get current region
cur_reg = grass.region()
ns_res = cur_reg["nsres"]
Expand Down
2 changes: 1 addition & 1 deletion src/grass_gis_helpers/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def free_ram(unit, percent=100):
RAM memory and free swap space.
Args:
unit(string): 'GB' or 'MB'
percent(int): number of percent which shoud be used of the available
percent(int): number of percent which should be used of the available
RAM memory and free swap space
default 100%
Returns:
Expand Down
4 changes: 2 additions & 2 deletions src/grass_gis_helpers/open_geodata_germany/federal_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@

def get_federal_states(federal_state, federal_state_file):
"""Get federal state and federal state file module parameters and return
list with federal state abbrevations
list with federal state abbreviations
Args:
federal_state (str): federal state module parameter
federal_state_file (str): federal state file module parameter
Returns:
(list): list with federale state abbrevations
(list): list with federale state abbreviations
"""
if federal_state_file:
Expand Down

0 comments on commit beb3a1e

Please sign in to comment.