Module:MOS intervals: Difference between revisions
m Better header |
Fixed mosprefix lookup |
||
| Line 187: | Line 187: | ||
-- If left blank, try to find the appropriate mos prefix, or else defualt to "mos" | -- If left blank, try to find the appropriate mos prefix, or else defualt to "mos" | ||
-- If not left blank, use the prefix passed in instead | -- If not left blank, use the prefix passed in instead | ||
local mos_prefix = | local scale_sig = mos.as_string(input_mos) | ||
if | local mos_prefix = p.get_mos_prefix(scale_sig) | ||
if frame.args['MOS Prefix'] == "NONE" then | |||
mos_prefix = "" | mos_prefix = "" | ||
elseif string.len(frame.args['MOS Prefix']) | elseif string.len(frame.args['MOS Prefix']) > 0 then | ||
mos_prefix = frame.args['MOS Prefix'] | mos_prefix = frame.args['MOS Prefix'] | ||
end | end | ||