OSeMOSYS / otoole

OSeMOSYS Tools for Energy
https://otoole.readthedocs.io
MIT License
23 stars 17 forks source link

Deprecated default_values.csv #143

Closed trevorb1 closed 1 year ago

trevorb1 commented 1 year ago

Overview

This PR addresses issue #139 and deprecates the reading/writing of default_values.csv, as all default values should be defined in the config.yaml file. Tests are included for the added logic.

Logic

In the convert function, if a folder of csvs is read in and a default_values.csv file is found, an OtooleDeprecationError is raised that instructs the user to define defaults in the config.yaml file.

Example

If a file called data/default_values.csv exists

(otoole) ~/repositories/otoole/trevor$ otoole convert csv datafile data/ test.txt config.yaml 
OtooleDeprecationError: data/default_values.csv -> Remove default_values.csv and define all default values in the configuration file