Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mpartio committed Jun 17, 2024
1 parent e3f2961 commit 9462f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions himan-scripts/pot-limit-values.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ function ReduceValue(POT)

if lead_time <= 120 then
for i=1,#POT do
POT[i] = POT[i] - POT[i] * RampUp(24, 120, POT[i]) * 0.5
POT[i] = POT[i] - POT[i] * RampUp(24, 120, lead_time) * 0.5
end
else
for i=1,#POT do
POT[i] = POT[i] * 0.5 - POT[i] * RampUp(123, 240, POT[i]) * 0.25
POT[i] = POT[i] * 0.5 - POT[i] * RampUp(123, 240, lead_time) * 0.25
end
end

Expand Down

0 comments on commit 9462f9b

Please sign in to comment.