Module:JI ratios in ED: Difference between revisions

Ganaram inukshuk (talk | contribs)
Fixed logic for ED parsing
Ganaram inukshuk (talk | contribs)
mNo edit summary
Line 144: Line 144:
-- Parse the ed; if it's just a number, interpret it as an edo
-- Parse the ed; if it's just a number, interpret it as an edo
local input_et = et.parse(frame.args["ED"])
local input_et_unparsed = frame.args["ED"]
if tonumber(input_et) ~= nil then
if tonumber(input_et_unparsed) ~= nil then
input_et = input_et .. "edo"
input_et_unparsed = input_et_unparsed .. "edo"
end
end
local input_et = et.parse(input_et_unparsed)


local primes = { 2, 3, 5, 7 }
local primes = { 2, 3, 5, 7 }