Skip to content

Commit 4062b12

Browse files
committed
fixes to trackpy version requirements
1 parent d2663b8 commit 4062b12

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.github/workflows/codecov-CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v2
1313
# Similar to MetPy install-conda action
1414
- name: Set up conda
15-
uses: conda-incubator/setup-miniconda@v2
15+
uses: conda-incubator/setup-miniconda@v3
1616
with:
1717
miniforge-version: latest
1818
miniforge-variant: mambaforge

environment-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- iris
1212
- xarray
1313
- cartopy
14-
- trackpy
14+
- trackpy>=0.6.1
1515
- pytest
1616
- typing_extensions
1717
- black

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ matplotlib
88
iris
99
xarray
1010
cartopy
11-
trackpy>=0.6.1
11+
trackpy
1212
typing_extensions

tobac/tracking.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,10 @@ def append_tracks_trackpy(
584584
If method_linking is neither 'random' nor 'predict'.
585585
586586
"""
587+
if pkgvsn.parse(tp.__version__) < pkgvsn.parse("0.6.0"):
588+
raise ValueError(
589+
"Append Tracking Only Supported with trackpy versions newer than 0.6.0."
590+
)
587591

588592
span: int = 1
589593
if "cell" not in tracks_orig:

0 commit comments

Comments
 (0)