Hi,Maybe someone can give me a tip on how I can compare intervals of different activities in a python script.
I tried to get the date and start time via GC.activityMetrics(compare=True), which also works.
Many thanks for the tips.
Unfortunately, GC.activity(compare=True) only works with R.
For example, when I test print(GC.activity(compare=True)) in Python, I get the following error message: TypeError: __GCactivity() got an unexpected keyword argument 'compare'.
Only compatible with version V3.6-DEV dated 15.04.2023 or later!
To use the chart, Python must be enabled in Golden Cheetah. See wiki for more: https://github.com/GoldenCheetah/GoldenCheetah/wiki/UG_Preferences_General


I think with data that does not have the same length, the data cannot be interpolated when compareindex is used.
I have attached a file with xdata gears.
The code below shows nan with compare pane enabled.
Code:
metricsAll = GC.activity(join="repeat", compareindex=0) xdataGears = GC.xdata('GEARS', 'REAR', join="repeat", compareindex=0) print("From activity: ", list(metricsAll['GEARS_REAR'])) print("From xdata: ", list(xdataGears))

