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
Overview
This PR addresses issue #139 and deprecates the reading/writing of
default_values.csv
, as all default values should be defined in theconfig.yaml
file. Tests are included for the added logic.Logic
In the
convert
function, if a folder of csvs is read in and adefault_values.csv
file is found, anOtooleDeprecationError
is raised that instructs the user to define defaults in theconfig.yaml
file.Example
If a file called
data/default_values.csv
exists