Module:JI ratios in ED: Difference between revisions
Fixed logic for ED parsing |
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 | local input_et_unparsed = frame.args["ED"] | ||
if tonumber( | if tonumber(input_et_unparsed) ~= nil then | ||
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 } | ||