From 678059dfe623969562ff25a55409bb98e3a6bc7e Mon Sep 17 00:00:00 2001 From: Rohith Varma Buddaraju Date: Wed, 29 Jun 2022 17:37:24 +0530 Subject: [PATCH] Fix function name according pep8 --- tardis/io/config_validator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tardis/io/config_validator.py b/tardis/io/config_validator.py index 2ac001fa08c..c2183626e42 100644 --- a/tardis/io/config_validator.py +++ b/tardis/io/config_validator.py @@ -62,7 +62,7 @@ def _yaml_handler(path): return yaml.load(f, Loader=YAMLLoader) -def is_Quantity(checker, instance): +def is_quantity(checker, instance): """ Check if the provided instance is of type astropy.units.quantity.Quantity @@ -92,7 +92,7 @@ def validate_dict( resolver = RefResolver(schemaurl, schema, handlers=handlers) validated_dict = deepcopy(config_dict) custom_type_checker = validator.TYPE_CHECKER.redefine( - "quantity", is_Quantity + "quantity", is_quantity ) custom_validator = validators.extend( validator, type_checker=custom_type_checker