Edit interval distance

607 views
Skip to first unread message

Arturo Gonzalez Mac Dowell

unread,
Jul 1, 2015, 6:05:44 AM7/1/15
to golden-che...@googlegroups.com
Is there a way to edit interval distance in workouts?

This is specially valuable with swim sets that include kicking drills, which would tipically have zero as distance for the interval.

Arturo

Ale Martinez

unread,
Jul 1, 2015, 9:33:11 AM7/1/15
to golden-che...@googlegroups.com
Arturo, there isn't, but would be interesting to have one.

In GC intervals are just time markers but the information is kept at sample level (typically 1 sample per sec.), currently at interval level you can only change start/stop and name, all other changes needs to be done at sample level using Activities->Editor, selecting an interval in the sidebar will highlight the corresponding samples. Changing speed will change swimscore/pace/xPace but will have no effect on distance, which is more difficult to change since it is accumulative.
OTOH total distance is easy to fix via metric override.

BTW. I found this tool very interesting to fix lap swimming files: http://www.swimmingwatchtools.com/index

Arturo Gonzalez Mac Dowell

unread,
Jul 1, 2015, 10:56:45 AM7/1/15
to golden-che...@googlegroups.com
Thanks Ale, I normally correct the total distance as you say. Unfortunately the tool you linked to does not allow the correction of drills, which is precisely what I need.

Arturo

Ale Martinez

unread,
Jul 2, 2015, 9:05:49 AM7/2/15
to golden-che...@googlegroups.com
I've opened a feature request for this: https://github.com/GoldenCheetah/GoldenCheetah/issues/1432, it also could be used to manually fix spikes in GPS speed due lost/recovered signal.

Ale Martinez

unread,
Sep 9, 2016, 11:29:40 AM9/9/16
to golden-cheetah-users
We don't have a good solution for this since the previous attempt based on laps was not such a good idea...
But now we have length-by-length information in XData which can be easily fixed in Edit tab when there are missing lengths, erroneous stroke type, etc.
I was thinking about to add a Fix tool to rebuild the sample data from the updated lengths so all standard metrics (Distance/Duration/Pace/xPace/etc) are correspondingly updated.


El miércoles, 1 de julio de 2015, 7:05:44 (UTC-3), Arturo Gonzalez Mac Dowell escribió:

art...@gmail.com

unread,
Sep 11, 2016, 9:39:05 AM9/11/16
to golden-cheetah-users
Hi Ale,

I have done an editor to recalculate swim distance / speed in GC. Maybe you can use this as a base.

https://github.com/Tria-Andy/WorkoutEditor/blob/master/activity.cpp

The methode of recalculation is at line 778 (void Activity::set_edit_samp_model()). I put in swim_xdata (QStandardItemModel) the information of GC json file XDATA part. I edit the values in a tableview with a spinbox delegate.

If you have questions about it, let me know.

cheers
Andy

Ale Martinez

unread,
Sep 14, 2016, 3:08:11 PM9/14/16
to golden-cheetah-users
Thanks Andy.
Currently when we import a lap swimming FIT file we save length-by-length records in XData as they come and generate second-by-second samples so all the rest of GC is happy (metrics, charts, etc.), I was thinking to just replicate the same logic in a Fix tool to regenerate the samples based on the updated length records, using pause length records as lap markers. It seems to be working, I will push an update soon.

Ale Martinez

unread,
Sep 15, 2016, 10:30:56 AM9/15/16
to golden-cheetah-users
It is on master now as Edit->Fix Lap Swim, the intended use has 2 steps:
1) via Edit SWIM tab add or remove lengths and correct length TYPE/DURATION/STROKES, there is no need to fix the accumulated Time and Distance (columns 1 and 2) since the fix tool will recompute these, pause lengths (Type=0) are used to mark start/end of laps.
2) run Edit->Fix Lap Swim, Pool Length parameter can be left to 0 if Pool Length was correctly configured and imported, otherwise you can specify the value here, all second-by-second samples will be recreated based on length-by-length info and laps marked using pause lengths, all metrics will be automatically recomputed.
it will be available in the NEXT development build.

David BG

unread,
Jul 27, 2018, 2:46:06 AM7/27/18
to golden-cheetah-users
Hi, I'm not able to solve an issue I have with a swimming file. I want to add the kick meters and correct the lengths duplicates, but after using the editor and the tool FIX LAP SWIM, the rest stops and manual laps disappear


Thanks!

Ale Martinez

unread,
Jul 27, 2018, 8:42:33 AM7/27/18
to golden-cheetah-users
Fix Lap Swim tool expect a pause “length” after each lap with TYPE=0 and DURATION=seconds-of-pause to rebuild the manual laps

Ale Martinez

unread,
Jul 27, 2018, 12:18:52 PM7/27/18
to golden-cheetah-users
El viernes, 27 de julio de 2018, 9:42:33 (UTC-3), Ale Martinez escribió:
Fix Lap Swim tool expect a pause “length” after each lap with TYPE=0 and DURATION=seconds-of-pause to rebuild the manual laps

I mean, you need to preserve or to add pause "lengths" for Fix Lap Swim so be able to preserve/create laps, you can use the context menu on the 1st column of Editor SWIM tab for that purpose: https://github.com/GoldenCheetah/GoldenCheetah/wiki/UG_ChartTypes_Activities#first-column---context-menu
 
Reply all
Reply to author
Forward
0 new messages