Refactoring for readability. This pull request moves code for validating input data and arguments to a new "validators.py" module.
validators.py has two classes:
DataValidator: code for checking the dataset
InputValidator: code for checking the arguments (should I have called this something like ArgumentValidator?)
The old validation code did some type manipulation (e.g. if groupby was provided as a list, it would be silently converted to a str). I have removed this code for now, and will work out what to do with it later.
Refactoring for readability. This pull request moves code for validating input data and arguments to a new "validators.py" module.
validators.py has two classes:
DataValidator
: code for checking the datasetInputValidator
: code for checking the arguments (should I have called this something likeArgumentValidator
?)The old validation code did some type manipulation (e.g. if groupby was provided as a list, it would be silently converted to a str). I have removed this code for now, and will work out what to do with it later.