Skip to content

Commit 50bc33a

Browse files
committed
Propagate cmin value in areatracker
1 parent 07e847c commit 50bc33a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

examples/10_tracking_diagnostics/pet_center_count.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
Count center
33
============
44
5-
Do Geo stat with center and compare with frequency method show: :ref:`sphx_glr_python_module_10_tracking_diagnostics_pet_pixel_used.py`
5+
Do Geo stat with center and compare with frequency method
6+
show: :ref:`sphx_glr_python_module_10_tracking_diagnostics_pet_pixel_used.py`
67
"""
78
import py_eddy_tracker_sample
89
from matplotlib import pyplot as plt

examples/10_tracking_diagnostics/pet_pixel_used.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
Count pixel used
33
================
44
5-
Do Geo stat with frequency and compare with center count method: :ref:`sphx_glr_python_module_10_tracking_diagnostics_pet_center_count.py`
5+
Do Geo stat with frequency and compare with center count
6+
method: :ref:`sphx_glr_python_module_10_tracking_diagnostics_pet_center_count.py`
67
"""
78
import py_eddy_tracker_sample
89
from matplotlib import pyplot as plt

src/py_eddy_tracker/featured_tracking/area_tracker.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ def __init__(self, *args, cmin=0.2, **kwargs):
1515
super().__init__(*args, **kwargs)
1616
self.cmin = cmin
1717

18+
def merge(self, *args, **kwargs):
19+
eddies = super().merge(*args, **kwargs)
20+
eddies.cmin = self.cmin
21+
return eddies
22+
1823
@classmethod
1924
def needed_variable(cls):
2025
vars = ["longitude", "latitude"]

0 commit comments

Comments
 (0)