Commit 504bac9f authored by Erkka Rinne's avatar Erkka Rinne
Browse files

Calculate forecast offset even for one scenario

Previously forecast offset `df_scenario` was computed only when number of scenarios was
greater than one. Long-term scenario data should use a special label in the `f` dimension
in all cases.
parent 376d8604
# Changelog
All notable changes to this project will be documented in this file.
## 1.1.5
### Fixed
- Long-term scenario data when using only one scenario
## 1.1.4
### Fixed
- Sample probability bug from scenario reduction
......
......@@ -450,7 +450,7 @@ loop(mf_realization(mSolve, f_),
);
// Central forecast for the long-term scenarios comes from a special forecast label
Option clear = df_scenario;
if(mSettings(mSolve, 'scenarios') > 1,
if(mSettings(mSolve, 'scenarios') >= 1,
loop((msft(ms_central(mSolve, s), f, t), mf_scenario(mSolve, f_)),
df_scenario(ft(f, t)) = ord(f_) - ord(f);
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment