Couple of things...

167 views
Skip to first unread message

Rob Edgerley

unread,
Oct 15, 2020, 10:04:45 AM10/15/20
to golden-cheetah-users
GC Version: SEP15 2020 
Build ID: 4002

Hi all, 

1year user of GC, long time scripter in Python. (prof: ASIC designer)

Thanks for the work done on these custom scripts. Love them. Especially the ones written by Roger (RB). There are a couple in there I couldn't live without. 

Q1: Average PWR by HT (Py slow)
Any idea how I might go about locating outlier points on the curve so I and correct/delete them?

Q2: Distance Tracker (P)
Would someone like to help me set-up this plot with custom fields. Walk me through the process of tracking say, a new tire. (note: the script is up and running, I just need something to track). 

Q3: Annual progress V6 (Py)
I'm having trouble here with Tkinter. The script runs in my python 3.7 environment and gets to /python3.7/tkinter/__init__.py, line 36, in <moduke> import .... # If this fails you python may not be configured for Tk. As far as I can tell, my py env should in fact be configured for Tk. Any idea how to progress on this point? 

Q4: Randomly GC completely crashes if I try to load a PY script just after launch. I can't seem to figure out the root cause. My workaround which works 90% of time, is to load a few of the predefined base plots first, then load a python script. Any ideas what might be going on here? 

Anyway. Nice to 'meet' you all. Thanks for the great work! If I get some time, I hope to contribute some of my own work. 

Cheers. 
- Rob

 

RB

unread,
Oct 15, 2020, 12:58:45 PM10/15/20
to golden-cheetah-users
Hi Rob,

A1:
How to determine the outlier? for now it just takes all power at an certain HR and makes an average of it. when and what needs to be an outlier?
If you want you can debug and adapt you charts in an IDE an example can be found here: https://github.com/rb83421/GoldenCheetah_Python_Chart_Wrapper

A2:
At the top of the main loop determine an filter. I often use all ride done on an certain bike e.g.: define_filter(name="Cannondale Synapse 2015",gc_filter='Bike = "Cannondale Synapse 2015"',color='Blue')
Then use the that filter in an tracking function i often use date when i start using a new tire or replaced an battery e.g.: add_tracking_item(name="GP5000 3('20)",filter_name="Cannondale Synapse 2015",tracking_start_date="2020-07-12",notes="")
When item is replaced then add the stop date e.g.: add_tracking_item(name="GP5000 2('19)", filter_name=" Cannondale Synapse 2015 ",tracking_start_date="2019-12-16",tracking_stop_date="2020-07-12",notes="not totally worn")

A3:
I can recall i also had this error at one time. Not sure what i did to remove the error. First an few question you have installed an custom python version including the dash package?
"shoot from the hip": Are you using anaconda or miniconda, try to use default system python version not via virtual environment.

A4:
Any specific PY chart that is crashing after GC launch or all after python charts.
Does the default gloldencheetah crash log give any clues?

Hope this helps kind regards,
Remco

RB

unread,
Oct 15, 2020, 1:55:14 PM10/15/20
to golden-cheetah-users
Rob,
A2:
For clarification: the filter i use in the example assumes you have a custom data field "Bike", defined in Tools=>Options=>Data fields (see attachment). For every Bike ride I select one of the bikes.
And in add_tracking_item function you could use an parameter to which field you want to track e.g. tracking_field='Duration'  (default is distance)
Kind Regards,
RB
DataFields.png

Rob Edgerley

unread,
Oct 19, 2020, 8:01:11 AM10/19/20
to golden-cheetah-users
Hi Remco, 

I thought I'd replied here, but obviously I forgot. Thanks a lot for all the information. I'll work through it all as soon as I have some spare time. 

- Rob

Reply all
Reply to author
Forward
0 new messages