Data Processor 'On Import' uses wrong activity

74 views
Skip to first unread message

Hwa Runner

unread,
Apr 17, 2023, 5:46:14 PM4/17/23
to golden-cheetah-users
I use some 'Python Fix' Data Processors to calculate some additional data for my activities. Running these programs manually calculates the results I expect.

However, when triggering a 'Python fix' with 'On Import', I noticed, that it does not use the data of the currently imported activity, but of activity selected in the activities window..

This can be checked by using a Python snippet like the following, which simply writes the activity data in the notes field:

act_date = GC.activityMetrics()["date"]

GC.setTag("Notes", str(act_date))


Did someone else experience this behavior as well, or am I doing something wrong?

Using GC 3.6 21.March.2023 Build 4013, Windows

Ale Martinez

unread,
Apr 17, 2023, 6:37:15 PM4/17/23
to golden-cheetah-users

Hwa Runner

unread,
Apr 18, 2023, 1:59:37 PM4/18/23
to golden-cheetah-users
Thank you for the hint. I should have read the documentation more carefully, that would have saved me a lot of work.
Reply all
Reply to author
Forward
0 new messages