Open AlexDece opened 3 years ago
Hi Alex,
CSV columns are hard-coded:
You should be able to get the chosen horizon from the store ...
computed: {
...mapGetters('options', ['horizon']),
}
... and use it to build the correct fields array:
const moreFields = new Array(this.horizon).fill().map((_, i) => String(i + 1));
// ...
fields: ['resulttype', 'rule', 'model', 'shock', 'variable', ...moreFields]
Sorry for the late response, was on vacation
Got it, thank you!
When changing the time horizon of the simulation and exporting the results in csv, the default time horizon is shown in the csv file.
I was surprised someone would actually download the csv file :D I received this issue from external source, so I should take care of it. I scanned through the code, but I didn't find where this information is read in matlab. @j2L4e do you have any idea? Since the output.json has the correct time horizon, I assume I just didnt find the right spot in the code...
To Reproduce Steps to reproduce the behavior:
Expected behavior The csv file should contain 41 periods output
Screenshots
Desktop (please complete the following information):