Module:MOS in EDO allperiods: Difference between revisions

Ganaram inukshuk (talk | contribs)
Fixed code for skipping genpairs that are the same size
Ganaram inukshuk (talk | contribs)
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 / verified_number_of_periods / 2)
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