Private
Public Access
1
0

bike erg export to C2

This commit is contained in:
Sander Roosendaal
2018-08-29 09:55:02 +02:00
parent cadc5d5e0d
commit b41f4c77de
4 changed files with 6 additions and 0 deletions

View File

@@ -394,6 +394,8 @@ def createc2workoutdata(w):
d[0] = d[1]
p = abs(10*row.df.ix[:,' Stroke500mPace (sec/500m)'].values)
p = np.clip(p,0,3600)
if w.workouttype == 'bike':
p = 2.0*p
t = t.astype(int)
d = d.astype(int)
p = p.astype(int)
@@ -834,6 +836,7 @@ def add_workout_from_data(user,importid,data,strokedata,
velo = 500./pace
if workouttype == 'bike':
velo = 1000./pace
pace = 500./velo
power = 2.8*velo**3

View File

@@ -87,6 +87,7 @@ $( document ).ready(function() {
|| $(this).val() == 'dynamic'
|| $(this).val() == 'slides'
|| $(this).val() == 'paddle'
|| $(this).val() == 'bike'
|| $(this).val() == 'snow'
) {
$('#id_boattype').toggle(false);

View File

@@ -21,6 +21,7 @@ $( document ).ready(function() {
|| $(this).val() == 'dynamic'
|| $(this).val() == 'slides'
|| $(this).val() == 'paddle'
|| $(this).val() == 'bike'
|| $(this).val() == 'snow'
) {
$('#id_boattype').toggle(false);

View File

@@ -29,6 +29,7 @@ $( document ).ready(function() {
|| $(this).val() == 'slides'
|| $(this).val() == 'paddle'
|| $(this).val() == 'snow'
|| $(this).val() == 'bike'
) {
$('#id_boattype').toggle(false);
$('#id_boattype').val('1x');