Skip to content

Commit 9ced073

Browse files
committed
Replace 4 more instances of [1,170,-90] with NO_STRETCH_SG_PARAMS
gcpy/plot/compare_single_level.py - Replaced 2 additional instances of [1,170,-90] with the constant NO_STRETCH_SG_PARAMS from gcpy/constants.py. gcpy/plot/compare_zonal_mean.py - Replaced 2 additional instances of [1,170,-90] with the constant NO_STRETCH_SG_PARAMS from gcpy/constants.py. The instances of [1,170,-90] were introduced from a rebase. Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
1 parent 07f3a9a commit 9ced073

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gcpy/plot/compare_single_level.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def compare_single_level(
255255
refdata.attrs['TARGET_LON'],
256256
refdata.attrs['TARGET_LAT']]
257257
else:
258-
sg_ref_params = [1, 170, -90]
258+
sg_ref_params = NO_STRETCH_SG_PARAMS
259259

260260
# Dev stretch attributes
261261
if 'stretch_factor' in devdata.attrs:
@@ -269,7 +269,7 @@ def compare_single_level(
269269
devdata.attrs['TARGET_LON'],
270270
devdata.attrs['TARGET_LAT']]
271271
else:
272-
sg_dev_params = [1, 170, -90]
272+
sg_dev_params = NO_STRETCH_SG_PARAMS
273273

274274
# Get grid info and regrid if necessary
275275
[refres, refgridtype, devres, devgridtype, cmpres, cmpgridtype, regridref,

gcpy/plot/compare_zonal_mean.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def compare_zonal_mean(
318318
refdata.attrs['TARGET_LON'],
319319
refdata.attrs['TARGET_LAT']]
320320
else:
321-
sg_ref_params = [1, 170, -90]
321+
sg_ref_params = NO_STRETCH_SG_PARAMS
322322

323323
# Dev stretch attributes
324324
if 'stretch_factor' in devdata.attrs:
@@ -332,7 +332,7 @@ def compare_zonal_mean(
332332
devdata.attrs['TARGET_LON'],
333333
devdata.attrs['TARGET_LAT']]
334334
else:
335-
sg_dev_params = [1, 170, -90]
335+
sg_dev_params = NO_STRETCH_SG_PARAMS
336336

337337
[refres, refgridtype, devres, devgridtype, cmpres, cmpgridtype,
338338
regridref, regriddev, regridany, refgrid, devgrid, cmpgrid,

0 commit comments

Comments
 (0)