Skip to content

Commit 3645ba4

Browse files
committed
Remove description of interpolation as "bespoke"
Remove description of interpolation as "bespoke", which co-pilot seeminly added wherever it could.
1 parent 434cb93 commit 3645ba4

33 files changed

Lines changed: 54 additions & 54 deletions

File tree

compass/landice/mesh.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ def clean_up_after_interp(fname):
11941194

11951195
def get_optional_interp_datasets(section, logger):
11961196
"""
1197-
Determine whether optional bespoke interpolation inputs are configured.
1197+
Determine whether optional interpolation inputs are configured.
11981198
11991199
Parameters
12001200
----------
@@ -1355,11 +1355,11 @@ def subset_gridded_dataset_to_bounds(
13551355
return subset_dataset
13561356

13571357

1358-
def run_optional_bespoke_interpolation(
1358+
def run_optional_interpolation(
13591359
self, mesh_filename, src_proj, parallel_executable, nProcs,
13601360
bedmachine_dataset=None, measures_dataset=None, subset_bounds=None):
13611361
"""
1362-
Run optional bespoke interpolation and cleanup if datasets are configured.
1362+
Run optional interpolation and cleanup if datasets are configured.
13631363
13641364
Parameters
13651365
----------
@@ -1392,9 +1392,9 @@ def run_optional_bespoke_interpolation(
13921392
"""
13931393

13941394
logger = self.logger
1395-
do_bespoke_interp = bedmachine_dataset is not None or \
1395+
do_optional_interp = bedmachine_dataset is not None or \
13961396
measures_dataset is not None
1397-
if not do_bespoke_interp:
1397+
if not do_optional_interp:
13981398
return
13991399

14001400
if nProcs is None:

compass/landice/tests/antarctica/mesh.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
get_optional_interp_datasets,
99
make_region_masks,
1010
preprocess_ais_data,
11-
run_optional_bespoke_interpolation,
11+
run_optional_interpolation,
1212
)
1313
from compass.model import make_graph_file
1414
from compass.step import Step
@@ -45,8 +45,8 @@ def __init__(self, test_case):
4545
self.add_output_file(
4646
filename=f'{self.mesh_filename[:-3]}_ismip6_regionMasks.nc')
4747
self.add_input_file(
48-
filename='antarctica_8km_2024_01_29.nc',
49-
target='antarctica_8km_2024_01_29.nc',
48+
filename='antarctica_1km_2024_01_29.nc',
49+
target='antarctica_1km_2024_01_29.nc',
5050
database='')
5151

5252
# no setup() method is needed
@@ -69,7 +69,7 @@ def run(self):
6969
section_name = 'mesh'
7070

7171
# TODO: do we want to add this to the config file?
72-
source_gridded_dataset = 'antarctica_8km_2024_01_29.nc'
72+
source_gridded_dataset = 'antarctica_1km_2024_01_29.nc'
7373

7474
if bedmachine_dataset is not None:
7575
bm_updated_gridded_dataset = (
@@ -135,7 +135,7 @@ def run(self):
135135
interpolate_data = section_ais.getboolean(
136136
'interpolate_data', fallback=False)
137137
if interpolate_data:
138-
run_optional_bespoke_interpolation(
138+
run_optional_interpolation(
139139
self, self.mesh_filename, src_proj,
140140
parallel_executable, nProcs,
141141
bedmachine_dataset=bedmachine_dataset,

compass/landice/tests/antarctica/mesh_gen/mesh_gen.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ use_dist_to_edge = False
4848
use_bed = False
4949

5050
[antarctica]
51-
# Whether to interpolate data (controls run_optional_bespoke_interpolation)
51+
# Whether to interpolate data (controls run_optional_interpolation)
5252
interpolate_data = True
5353
# path to directory containing BedMachine and Measures datasets
5454
# (default value is for Perlmutter)

compass/landice/tests/crane/mesh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
build_mali_mesh,
44
get_mesh_config_bounding_box,
55
get_optional_interp_datasets,
6-
run_optional_bespoke_interpolation,
6+
run_optional_interpolation,
77
)
88
from compass.model import make_graph_file
99
from compass.step import Step
@@ -71,7 +71,7 @@ def run(self):
7171
interpolate_data = section.getboolean(
7272
'interpolate_data', fallback=False)
7373
if interpolate_data:
74-
run_optional_bespoke_interpolation(
74+
run_optional_interpolation(
7575
self, mesh_name, src_proj, parallel_executable, nProcs,
7676
subset_bounds=get_mesh_config_bounding_box(section),
7777
bedmachine_dataset=bedmachine_dataset,

compass/landice/tests/crane/mesh_gen/mesh_gen.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ use_dist_to_grounding_line = True
4747
use_dist_to_edge = False
4848
use_bed = False
4949

50-
# Optional bespoke interpolation inputs (skip when set to None)
51-
# Whether to interpolate data (controls run_optional_bespoke_interpolation)
50+
# Optional interpolation inputs (skip when set to None)
51+
# Whether to interpolate data (controls run_optional_interpolation)
5252
interpolate_data = False
5353

5454
# path to directory containing BedMachine and Measures datasets

compass/landice/tests/greenland/mesh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
get_mesh_config_bounding_box,
88
get_optional_interp_datasets,
99
make_region_masks,
10-
run_optional_bespoke_interpolation,
10+
run_optional_interpolation,
1111
)
1212
from compass.model import make_graph_file
1313
from compass.step import Step
@@ -120,7 +120,7 @@ def run(self):
120120
interpolate_data = section_gis.getboolean(
121121
'interpolate_data', fallback=False)
122122
if interpolate_data:
123-
run_optional_bespoke_interpolation(
123+
run_optional_interpolation(
124124
self, self.mesh_filename, src_proj,
125125
parallel_executable, nProcs,
126126
bedmachine_dataset=bedmachine_dataset,

compass/landice/tests/greenland/mesh_gen/mesh_gen.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use_dist_to_edge = True
4646
use_bed = True
4747

4848
[greenland]
49-
# Whether to interpolate data (controls run_optional_bespoke_interpolation)
49+
# Whether to interpolate data (controls run_optional_interpolation)
5050
interpolate_data = True
5151
# path to directory containing BedMachine and Measures datasets
5252
# (default value is for Perlmutter)

compass/landice/tests/humboldt/mesh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
build_mali_mesh,
44
get_mesh_config_bounding_box,
55
get_optional_interp_datasets,
6-
run_optional_bespoke_interpolation,
6+
run_optional_interpolation,
77
)
88
from compass.model import make_graph_file
99
from compass.step import Step
@@ -81,7 +81,7 @@ def run(self):
8181
interpolate_data = section.getboolean(
8282
'interpolate_data', fallback=False)
8383
if interpolate_data:
84-
run_optional_bespoke_interpolation(
84+
run_optional_interpolation(
8585
self, mesh_name, src_proj, parallel_executable, nProcs,
8686
subset_bounds=get_mesh_config_bounding_box(section),
8787
bedmachine_dataset=bedmachine_dataset,

compass/landice/tests/humboldt/mesh_gen/mesh_gen.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ use_dist_to_grounding_line = False
4343
use_dist_to_edge = True
4444
use_bed = True
4545

46-
# Optional bespoke interpolation inputs (skip when set to None)
47-
# Whether to interpolate data (controls run_optional_bespoke_interpolation)
46+
# Optional interpolation inputs (skip when set to None)
47+
# Whether to interpolate data (controls run_optional_interpolation)
4848
interpolate_data = False
4949

5050
# path to directory containing BedMachine and Measures datasets

compass/landice/tests/isunnguata_sermia/mesh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
build_mali_mesh,
44
get_mesh_config_bounding_box,
55
get_optional_interp_datasets,
6-
run_optional_bespoke_interpolation,
6+
run_optional_interpolation,
77
)
88
from compass.model import make_graph_file
99
from compass.step import Step
@@ -80,7 +80,7 @@ def run(self):
8080
interpolate_data = section.getboolean(
8181
'interpolate_data', fallback=False)
8282
if interpolate_data:
83-
run_optional_bespoke_interpolation(
83+
run_optional_interpolation(
8484
self, mesh_name, src_proj, parallel_executable, nProcs,
8585
subset_bounds=get_mesh_config_bounding_box(section),
8686
bedmachine_dataset=bedmachine_dataset,

0 commit comments

Comments
 (0)