section-11 icon indicating copy to clipboard operation
section-11 copied to clipboard

VirtualRow is not mapped to the rowing sport family

Open mlevison opened this issue 3 months ago • 2 comments

Problem

SPORT_FAMILIES in examples/sync.py has no entry for the activity type VirtualRow, so indoor rowing falls through .get(type, "other") and is classified as other.

ErgData to Intervals.icu as VirtualRow, not Rowing.

Suggested fix

Cycling and ski already pair their Virtual* variants with the outdoor type; rowing is the one family missing that pairing:

SPORT_FAMILIES = {
    ...
    "Rowing": "rowing",
    "VirtualRow": "rowing",   # add
    ...
}

SUSTAINABILITY_POWER_TYPES = {
    "cycling": ["Ride", "VirtualRide"],
    "ski":     ["NordicSki", "VirtualSki"],
    "rowing":  ["Rowing", "VirtualRow"],   # add
}

SUSTAINABILITY_HR_TYPES = {
    "cycling": ["Ride", "VirtualRide"],
    "ski":     ["NordicSki", "VirtualSki"],
    "rowing":  ["Rowing", "VirtualRow"],   # add
}

mlevison avatar Aug 09 '26 00:08 mlevison

Caveat - Claude opened these PRs for me, that was not intentional. I need to fix a global permissions.

mlevison avatar Aug 09 '26 15:08 mlevison

Fixed in 691935e, released as sync.py v3.125 / protocol v11.57.

VirtualRow now maps to the rowing sport family and is included in both rowing sustainability type lists, so it inherits rowing-family behavior for monotony, sustainability curves, interval fetching, and sport thresholds.

Verified with synthetic coverage for the mapping, interval eligibility, and threshold collision handling.

Thanks for the report.

CrankAddict avatar Aug 11 '26 19:08 CrankAddict