Skip to content

Commit beed0c0

Browse files
committed
Removed redundant get_circle function and
related variables
1 parent 1c4c7e4 commit beed0c0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

make_eddy_tracker_list_obj.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,11 @@ def __getstate__(self):
364364
Needed for Pickle
365365
"""
366366
#print '--- removing unwanted attributes'
367-
pops = ('uspd', 'uspd_coeffs', 'sla_coeffs', 'points',
367+
"""pops = ('uspd', 'uspd_coeffs', 'sla_coeffs', 'points',
368368
'circlon', 'circlat', 'sla', 'slacopy', 'swirl',
369+
'mask_eff', 'mask_eff_sum', 'mask_eff_1d')"""
370+
pops = ('uspd', 'uspd_coeffs', 'sla_coeffs', 'points',
371+
'sla', 'slacopy', 'swirl',
369372
'mask_eff', 'mask_eff_sum', 'mask_eff_1d')
370373
result = self.__dict__.copy()
371374
for pop in pops:

py_eddy_tracker_classes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ def collection_loop(CS, grd, rtime, A_list_obj, C_list_obj,
656656
# Unpack indices for convenience
657657
imin, imax, jmin, jmax = (Eddy.imin, Eddy.imax,
658658
Eddy.jmin, Eddy.jmax)
659-
659+
'''
660660
# Get eddy circumference using eddy_radius_e
661661
#centx, centy = Eddy.M(centlon_e, centlat_e)
662662
#circlon, circlat = get_circle(centx, centy,
@@ -668,7 +668,7 @@ def collection_loop(CS, grd, rtime, A_list_obj, C_list_obj,
668668
#circlon[:], circlat[:] = proj(circlon, circlat,
669669
#inverse=True)
670670
Eddy.circlon, Eddy.circlat = circlon, circlat
671-
671+
'''
672672
# Set masked points within bounding box around eddy
673673
Eddy.set_mask_eff(cont, grd)
674674

0 commit comments

Comments
 (0)