Closed trevorb1 closed 1 year ago
Ive narrowed down the issue to the writing out of data to excel. Reading in the data works fine and writing to CSV and datafile work fine
This was actually an issue with version 1.0.0 as well. But in version 1.0.2, we introduce explicit checking for indices in the data against the config file. So thats why in version 1.0.2 the error is now flagged
This wasn't getting flagged by other parameters before (such as operational life which also not indexed over years), since the logic checked for the number of indices associated with the parameter before pivoting
The Issue
If I convert from CSV to excel, and a parameter is not indexed over years but the last column is MODE_OF_OPERATION, the mode gets pivoted on
For example, TechnologyToStorage is given as:
Expected Behavior
The pivot should only happen on the years column. The output should look like
Steps To Reproduce
git clone https://github.com/OSeMOSYS/simplicity.git
otoole convert csv excel data data.xlsx config.yaml
TechnologyToStorage
andTechnologyFromStorage
sheets, which are not indexed over year in the CSV filesLog output
Operating System
Linux
What version of otoole are you running?
Error is introduced in version 1.0.2
Possible Solution
No response
Anything else?
No response