diff --git a/tests/integration/template_complete_run.cfg b/tests/integration/template_complete_run.cfg index 5d2d2c3f..9009b8fc 100644 --- a/tests/integration/template_complete_run.cfg +++ b/tests/integration/template_complete_run.cfg @@ -13,7 +13,7 @@ www = "#expand user_www#zppy_test_complete_run_www" [climo] active = True walltime = "00:30:00" -years = "1850:1854:2", "1850:1854:4", +years = "1850:1854:2", "1850:1854:4" [[ atm_monthly_180x360_aave ]] frequency = "monthly" @@ -25,9 +25,9 @@ years = "1850:1854:2", "1850:1854:4", vars = "PRECT" [ts] -active = True +active = 4 walltime = "00:30:00" -years = "1850:1854:2", +years = "1850:1854:2" [[ atm_monthly_180x360_aave ]] frequency = "monthly" diff --git a/zppy/__main__.py b/zppy/__main__.py index fbfa3a47..ba3420c0 100644 --- a/zppy/__main__.py +++ b/zppy/__main__.py @@ -1,6 +1,7 @@ import argparse import errno import os +import pprint from typing import List from configobj import ConfigObj @@ -167,8 +168,12 @@ def _validate_config(config): validator = Validator() result = config.validate(validator) + print(type(result)) if result is not True: - print("Validation results={}".format(result)) + printer = pprint.PrettyPrinter(depth=3) + print("Validation results:") + printer.pprint(result) + # print("Validation results={}".format(result)) raise ValueError( "Configuration file validation failed. Parameters listed as false in the validation results have invalid values." )