Module:MOS in EDO allperiods: Difference between revisions
Fixed code for skipping genpairs that are the same size |
Fixed error with starting generator calculation |
||
| Line 40: | Line 40: | ||
-- If the generator and its complement are the same, skip that genpair by | -- If the generator and its complement are the same, skip that genpair by | ||
-- incrementing the starting generator by 1 | -- incrementing the starting generator by 1 | ||
local starting_generator = math.ceil(period_in_edosteps | local starting_generator = math.ceil(period_in_edosteps / 2) | ||
local complement = period_in_edosteps - starting_generator | local complement = period_in_edosteps - starting_generator | ||
if starting_generator == complement then | if starting_generator == complement then | ||