Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python - Add compare support to activity series #4349

Merged
merged 3 commits into from Apr 11, 2023

Conversation

amtriathlon
Copy link
Member

All activity functions working with data series,
both standard and xdata, now include an optional
compare=-1 parameter.
When compare mode is enabled compare parameter
is used as an index to get data for the corresponding compare item, be an activity or an interval.
Fixes #4346

All activity functions working with data series,
both standard and xdata, now include an optional
compare=-1 parameter.
When compare mode is enabled compare parameter
is used as an index to get data for the corresponding
compare item, be an activity or an interval.
Fixes GoldenCheetah#4346
@amtriathlon amtriathlon added P3 API error Error related to R, Python or Rest APIs labels Apr 11, 2023
@amtriathlon amtriathlon added this to the 3.6 milestone Apr 11, 2023
To avoid confusion with compare (boolean) in other entry points.
@amtriathlon
Copy link
Member Author

Parameter compare (int) was changed to compareindex (int) to avoid confusion with compare (boolean) used in other API entry points.

Contributed by Marcen at the users forum
@amtriathlon amtriathlon merged commit 1ecc6f9 into GoldenCheetah:master Apr 11, 2023
1 check was pending
@amtriathlon amtriathlon deleted the PythonCompare branch April 11, 2023 21:06
amtriathlon added a commit that referenced this pull request Apr 15, 2023
Cumulative changes from v3.6-RC4
dbd3346 Update FIT SDK to 21.105
708d874 Support larger font scaling
c85dab8 Skip previously imported files on Auto-Import (#4347)
1ecc6f9 Python - Add compare support to activity series (#4349)
f0c9f12 FitRideFile - Identify Pulse Ox field
ab337f1 WorkoutWizard - Remove references to FTP and CP60
00d09af Highlight current selection in Train and Trends (#4320)
e7b9275 Update Italian translation
fdb35bf Athlete tab colour fix (#4257)
e32eabc Update German translation
[publish binaries]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API error Error related to R, Python or Rest APIs P3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add compare support to GC.activity() Python API
1 participant