johnwalley / bumps-results

Cambridge and Oxford Bumps results
Creative Commons Attribution 4.0 International
4 stars 1 forks source link

Handle when division sizes can change after each day of racing #13

Open mcshane-fire opened 12 months ago

mcshane-fire commented 12 months ago

Required for correctly displaying Torpids from 1960 to 1979, where the top division increased by 1 crew each day, and the bottom division decreased by 1 crew each day.

mcshane-fire commented 12 months ago

Suggested syntax for the tg_format results:

d<[num1],[num2],[num3],...>

The numbers indicate the size of each division. There should be as many numbers as there are divisions, the total should add up to the same number of crews, and this command must only be used between complete days of results.

Here's what the results file for Torpids 1960 Men looks like:

torpids1960_men.txt torpids1960

mcshane-fire commented 11 months ago

I've checked in code that handles this here: https://github.com/mcshane-fire/bumps/blob/master/src/bumps.py The only change from the suggestion above was to use dot separators rather than comma for the divisions sizes, since I have the ability to use commas to separate sets of results codes.