Skip to content

Commit

Permalink
Merge 678059d into 8c1ec10
Browse files Browse the repository at this point in the history
  • Loading branch information
blackbird7112 authored Jun 29, 2022
2 parents 8c1ec10 + 678059d commit f7f5894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tardis/io/config_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f7f5894

Please sign in to comment.