Skip to content

Commit

Permalink
artifact v3 to artifact v4
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangHuLiu committed Nov 12, 2024
1 parent 0898230 commit d750d77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tcrm-pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
pylint --rcfile pylintrc --fail-under=7 `find -regextype egrep -regex '(.*.py)$'` |
tee pylint.txt
- name: Upload pylint.txt as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pylint report
path: pylint.txt
4 changes: 2 additions & 2 deletions Evaluate/interpolateTracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np

from datetime import datetime, timedelta
from matplotlib.dates import num2date, date2num
from matplotlib.dates import num2date, date2num
from scipy.interpolate import interp1d, splev, splrep

from Utilities.maputils import latLon2Azi
Expand Down Expand Up @@ -96,7 +96,7 @@ def interpolate(track, delta, interpolation_type=None):
newtime = np.arange(timestep[0], timestep[-1] + .01, delta)
newtime[-1] = timestep[-1]
_newtime = (newtime / 24.) + time_[0] + date2num(np.datetime64('0000-12-31')) # Before Matplotlib 3.3, the epoch was 0000-12-31, later it changes to 1970-01-01 UTC
newdates = num2date(_newtime)
newdates = num2date(_newtime)
newdates = np.array([n.replace(tzinfo=None) for n in newdates])

if not hasattr(track, 'Speed'):
Expand Down

0 comments on commit d750d77

Please sign in to comment.