Skip to content

Commit 490e606

Browse files
committed
Apply more suggestions/edits from code review.
1 parent ed7b85e commit 490e606

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

compass/landice/mesh.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def get_dist_to_edge_and_gl(self, thk, topg, x, y,
443443
elif window_size < min(high_dist, high_dist_bed):
444444
logger.info('WARNING: window_size was set to a value smaller'
445445
' than high_dist and/or high_dist_bed. Resetting'
446-
f' window_size to {max(high_dist, high_dist_bed)}, '
446+
f' window_size to {max(high_dist, high_dist_bed)},'
447447
' which is max(high_dist, high_dist_bed)')
448448
window_size = max(high_dist, high_dist_bed)
449449

@@ -972,7 +972,7 @@ def preprocess_ais_data(self, source_gridded_dataset,
972972
tic = time.perf_counter()
973973
logger.info(f"Beginning interpolation for {field}")
974974
# NOTE: Do not need to evaluate the extrapolator at all grid cells.
975-
# Only needed for ice-free grid cells, since it's NN extrapolation
975+
# Only needed for ice-free grid cells, since is NN extrapolation
976976
data.variables[field][0, :] = interp(xGrid, yGrid)
977977
toc = time.perf_counter()
978978
logger.info(f"Interpolation completed in {toc - tic} seconds")
@@ -1029,8 +1029,8 @@ def interp_gridded2mali(self, source_file, mali_scrip, nProcs, dest_file, proj,
10291029
proj: str
10301030
projection of the source dataset
10311031
1032-
variables: str or list of strings
1033-
1032+
variables: "all" or list of strings
1033+
either the string "all" or a list of strings
10341034
"""
10351035

10361036
def __guess_scrip_name(filename):
@@ -1057,7 +1057,7 @@ def __guess_scrip_name(filename):
10571057
variables = [variables]
10581058
if not isinstance(variables, list):
10591059
raise TypeError("Arugment 'variables' is of incorrect type, must"
1060-
" either the string 'all' or a list string")
1060+
" either the string 'all' or a list of strings")
10611061

10621062
logger.info('creating scrip file for source dataset')
10631063
# Note: writing scrip file to workdir
@@ -1090,9 +1090,6 @@ def __guess_scrip_name(filename):
10901090

10911091
check_call(args, logger=logger)
10921092

1093-
# should I delted the weights file, since that could cause namespace
1094-
# conflicts when multiple interpolations are done?
1095-
10961093

10971094
def clean_up_after_interp(fname):
10981095
"""

0 commit comments

Comments
 (0)