Skip to content

Commit

Permalink
fixes to trackpy version requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
freemansw1 committed Nov 1, 2024
1 parent d2663b8 commit 4062b12
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codecov-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
# Similar to MetPy install-conda action
- name: Set up conda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
miniforge-variant: mambaforge
Expand Down
2 changes: 1 addition & 1 deletion environment-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
- iris
- xarray
- cartopy
- trackpy
- trackpy>=0.6.1
- pytest
- typing_extensions
- black
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ matplotlib
iris
xarray
cartopy
trackpy>=0.6.1
trackpy
typing_extensions
4 changes: 4 additions & 0 deletions tobac/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,10 @@ def append_tracks_trackpy(
If method_linking is neither 'random' nor 'predict'.
"""
if pkgvsn.parse(tp.__version__) < pkgvsn.parse("0.6.0"):
raise ValueError(
"Append Tracking Only Supported with trackpy versions newer than 0.6.0."
)

span: int = 1
if "cell" not in tracks_orig:
Expand Down

0 comments on commit 4062b12

Please sign in to comment.