From d750d77f318be8255432f486277be214bbfcb7a8 Mon Sep 17 00:00:00 2001 From: LiangHuLiu Date: Wed, 13 Nov 2024 10:49:56 +1100 Subject: [PATCH] artifact v3 to artifact v4 --- .github/workflows/tcrm-pylint.yml | 2 +- Evaluate/interpolateTracks.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tcrm-pylint.yml b/.github/workflows/tcrm-pylint.yml index 0c7c7bd8..bcf40844 100644 --- a/.github/workflows/tcrm-pylint.yml +++ b/.github/workflows/tcrm-pylint.yml @@ -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 diff --git a/Evaluate/interpolateTracks.py b/Evaluate/interpolateTracks.py index 4ed3f95e..afbae57e 100644 --- a/Evaluate/interpolateTracks.py +++ b/Evaluate/interpolateTracks.py @@ -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 @@ -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'):