Lap analysis on activity

hello
is it possible to have an analysis of the turns on the activity?
example, a bit like on strava or even trainingpeaks, analysis of laps or training

sorry for my broken english, I’m french
I hope the topic is not duplicated.
thank you

1 Like

I was wondering if the computed activity fields could do the trick. But they need to be configured some how as per interval. I mean, the activity stream would need to return the value by interval somehow.

Isn’t this already available by default on the Interval Data page? Or am I misinterpreting the question?

@Povedano Here’s an example of a sript getting the streams and computing a desired metric.

// get data streams
respStr = streams.get("respiration").data
a1Str = streams.get("dfa_a1").data 

count = 0
alphaSum = 0

// iterate over data streams
for (let i=interval.start_time; i<interval.end_time; i++){
    alpha1=respStr[i]/60/a1Str[i]
    count++
// acumulates alpha points
    alphaSum = alphaSum + alpha1
    }

// calculates average
alphaAvg = alphaSum / count

I’m planning on making the running metrics Efficiency/Perfromance/Technique available both with NP and Avg Pwr with a similar script.

1 Like

yes, maybe, but the data is not exact, I think the break time is included in the data and visually I like having graphs.
maybe i am using this page wrong


Yes, paused time is included for intervals and selections.

Thanks. I do not exactly how yet, I have to experiment a little bit more with that.

If we can get the average pace per interval or lap, then we can show a graphic with this data on the activity graphs. This will do what it is being asking. The only difference will be that the graphic will be in lines and not in bars, but not a big deal.

1 Like

In this script, consider that alpha1 can be zero under some conditions. For example, when you start activity before the RR-int buffer is first completed.
So, you should do a zero check before dividing by a1Str[i].

1 Like

You should use interval.start_index and interval.end_index (exclusive) to find the data for an interval. The times will only work if there is 1 second per tick and no missed data points. I need to add a bunch more comments to the data model.

The interval fields on the timeline chart will give you that info. I am going to be adding support for custom charts at some point and then people will be able to build things like that.

4 Likes

Thx at @Inigo_Tolosa and @david for the remarks. I noticed small differences and hadn’t been able to find out why. Now I know and will correct.

1 Like

hello,

Is it possible to extract the pause time of a lap in this table?

What is the “pause time” of a lap? I am not familiar with that. Tx.

When I do track sessions, I do a lap on the watch when the set is over, but in this lap the rest time is included in the total lap time

Alexandre, je comprends bien en disant que tu veut enlever les lap de 85, 78 et 2s de la liste des lap ‘Travail’?
Si oui, il suffit de retourner sur la page de l’activité, mettre la souris dans la zone de ces pauses, et utiliser la touche D (delete) pour les marquer comme Récupération.
Ou tu clique sur le crayon et tu utilise l’icone poubelle.
Dans les deux cas, les données restent mais seront indiquer comme récupération et non comme travail.

Pas vraiment, exemple sur le tour de 2m24 , à l’intérieur il y a l’exercice, environ 1min et le repos environs 1min aussi , et je voudrais supprimer cette minute de repos

Je ne comprends toujours pas clairement ce que tu veut comme résultat…
Un saisi d’écran d’un tour avec ce que tu veut faire pourrait m’éclairer.
Intervals a plusieurs façons de détecter des ‘tours’ automatiquement.

  • Suivre les actions du bouton ‘lap’
  • Détection automatique des efforts. En général, un effort débute et prends fin avec un changement de puissance soudain.
    A partir de la tu peut modifier manuellement comme tu veut. Mode visuelle, dans les tracés, tu déplace le début et la fin avec la souris. Mode édition en changeant les indices quand tu clique sur le crayon.

Voici un dessin de ce que je voudrai faire :

Plus facile sur desktop, mais également dispo sur mobile. Simplement déplacer la fin et/ou le début du tour…
Ou le mode crayon

Si la partie Rest est facilement détectable, utilise la détection automatique. Actions - Analyse

Now, thanks to the new custom charts, we can give a solution to the main question of this topic:

Public Custom Chart: Interval Avg Pace & GAP + Altitude

Perhaps this could push @david to add them to the intervals tab of the activity page… :grin:

3 Likes

Thank you very much for this very detailed graph, little question, I don’t know if we can do an IF() in the script to only take who if moving = true

It would be easy for the altitude part, jut skipping the part of the stream it is not moving. A little bit tricky for the intervals part. I don’t know if the average_speed and the gap of the interval is taking account of the moving time. If so, only need to change the position and the width of the interval bar, if not, then it is needed go trough the stream to calculate the pace, gap and the interval skipping the not moving recs.