Closed HauHe closed 1 year ago
If you created a datapackage with an earlier version of otoole which did not include the DiscountRateStorage
parameter, and then try to read it with a later version of otoole where this parameter is included in the configuration (or in the datapackage.json
file, you would expect this error.
However, this should be better managed in otoole, perhaps raising a more descriptive error, and could be avoided through the use of custom configurations...
The error can be avoided by creating an empty csv called DiscountRateStorage.csv
in the datapackage. Only containing one line with : REGION,STORAGE,VALUE
Perhaps, one could create an error message that suggests to check and if not existend add the needed. csv-file.
With PR #142 (otoole v1.0.0) and the introduction of the user configuration file, this should no longer be a problem! 🙂
When trying to convert from datapackage to datafile or excel I get the below error. Since I'm not using storage the
DiscountRateStorage
is indeed not defined. Perhaps this is related to the introduction of the newDiscountRate
in OSeMOSYS not too long ago?