Merge branch 'release/v22.1.17'
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
|
import datetime as dt
|
||||||
from rowers.models import Workout, VirtualRaceResult, CourseTestResult
|
from rowers.models import Workout, VirtualRaceResult, CourseTestResult
|
||||||
|
|
||||||
def timefield_to_seconds_duration(t):
|
def timefield_to_seconds_duration(t):
|
||||||
|
|||||||
@@ -3904,8 +3904,11 @@ def fetch_strava_workout(stravatoken, oauth_data, stravaid, csvfilename, userid,
|
|||||||
lat = np.zeros(len(t))
|
lat = np.zeros(len(t))
|
||||||
lon = np.zeros(len(t))
|
lon = np.zeros(len(t))
|
||||||
|
|
||||||
|
try:
|
||||||
strokelength = velo*60./(spm)
|
strokelength = velo*60./(spm)
|
||||||
strokelength[np.isinf(strokelength)] = 0.0
|
strokelength[np.isinf(strokelength)] = 0.0
|
||||||
|
except ValueError:
|
||||||
|
strokelength = np.zeros(len(t))
|
||||||
|
|
||||||
pace = 500./(1.0*velo2)
|
pace = 500./(1.0*velo2)
|
||||||
pace[np.isinf(pace)] = 0.0
|
pace[np.isinf(pace)] = 0.0
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user