Content deleted Content added
No edit summary Tag: Reverted |
restore version at 03:00, 1 June 2023 to remove temporary tests |
||
Line 148:
local function getInputs(args, group_name, suffix, include_space)
local month_names = { '
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', 'year' }
local str
local values = {}
Line 191 ⟶ 192:
local p1, p2, variant
p1 = 0
for i = 1,
if not values[i]:isValid() then
return Value.new()
Line 209 ⟶ 210:
local value = Value.new(total)
if mode == 'avg' then
value:setNumberRounded(total /
end
value.variant = variant
Line 215 ⟶ 216:
elseif mode == 'min' then
local target
for i = 1,
if values[i]:isValid() then
if target == nil or values[i].number < target.number then
Line 225 ⟶ 226:
elseif mode == 'max' then
local target
for i = 1,
if values[i]:isValid() then
if target == nil or values[i].number > target.number then
Line 239 ⟶ 240:
local function reconcileTemperature(C_values, F_values)
for i = 1,
local p
if C_values[i].string == '' then
Line 257 ⟶ 258:
local function reconcilePrecipitation(M_values, I_values, prefer_cm)
local v_class = 0
for i = 1,
if M_values[i].variant == 1 then
v_class = 1
Line 271 ⟶ 272:
end
end
for i = 1,
local units
if M_values[i].string == '' then
Line 345 ⟶ 346:
return ''
end
if first_values[
first_values[
end
if second_values ~= nil then
if second_values[
second_values[
end
end
color_scheme = wbc.interpret_color_code(color_scheme)
color_values = {}
local month_adj = {
31/30, 31/30, 1, 31/30, 1, 31/30, 365.25/30 }
for i = 1,
if first_values[i]:isValid() then
local adj = scale_factor
|