View internal estimated CP (CP3 Model) over Time for Running in User Chart?

117 views
Skip to first unread message

marcel...@googlemail.com

unread,
Feb 18, 2022, 10:45:18 AM2/18/22
to golden-cheetah-users
Hi,

i use the Stryd for Running Power. In a User Chart I want to view the estimated CP over Time (Daterange from the Left Side Bar) only for Running. I Used the following Code:

{
    init {
        xx<-c();
        yy<-c();
    }
    finalise {
       activities("isRun <> 0", {
        xx <- estimates(cp3, date);
        yy <- estimates(cp3, cp);

        annotate(label, "current CP: " + config(cp));
      });
    }
    x { xx; }
    y { yy; }
}

Current configured CP is 323 for Running (see Image).
Bildschirmfoto 2022-02-18 um 16.30.42.png

Now the Problem, when Last Activity i has import or selected is a Cycling, the cycling Values where displayed in the Chart.

Bildschirmfoto 2022-02-18 um 16.34.18.png

Bildschirmfoto 2022-02-18 um 16.34.41.png
in the Upper Right., the configured CP of Cycling is shown.
The Estimation are that, which are shown in a Cycling PDC Diagramm.
Bildschirmfoto 2022-02-18 um 16.38.09.png

Now, when a Select a Running Activity and switch back to Trend View, the values are Correct shown. .
Bildschirmfoto 2022-02-18 um 16.43.22.png

Bildschirmfoto 2022-02-18 um 16.39.33.png

How I can force GoldenCheetah to always show me the estimation for Running only ?

I tried also to use the Global Filter, but this didn't work.

Greetings Marcel

Mark Liversedge

unread,
Feb 18, 2022, 12:16:55 PM2/18/22
to golden-cheetah-users
Hi

estimate() will return the estimate for the day of the currently selected activity, if it is a running activity it will return the estimate for that day.
estimates() will return all estimates for the date range regardless of sport.

It is not currently possible to set which sport to return; I would suggest we add an optional argument to the estimates() function so you can select the sport.

Mark

Ale Martinez

unread,
Feb 18, 2022, 3:48:57 PM2/18/22
to golden-cheetah-users
Use an activity method, as explained in https://github.com/GoldenCheetah/GoldenCheetah/wiki/UG_Special-Topics_Working-with-User-Charts#the-series-program and filter accordingly in its body.

Mark Liversedge

unread,
Feb 18, 2022, 4:04:35 PM2/18/22
to golden-cheetah-users
Nifty !

Mark
Reply all
Reply to author
Forward
0 new messages