geowatch.rc package¶
Subpackages¶
Submodules¶
Module contents¶
- geowatch.rc.load_site_model_schema(strict=True)[source]¶
- Parameters:
strict (bool) – if True we make a few changes the schema to be more permissive towards things like region names and originator.
Example
>>> from geowatch.rc.registry import * # NOQA >>> data1 = load_site_model_schema(strict=True) >>> data2 = load_site_model_schema(strict=False) >>> import rich >>> rich.print('data = {}'.format(ub.urepr(data1, nl=-2))) >>> rich.print('data = {}'.format(ub.urepr(data2, nl=-2))) >>> import jsonschema >>> cls = jsonschema.validators.validator_for(data1) >>> cls.check_schema(data1) >>> cls = jsonschema.validators.validator_for(data2) >>> cls.check_schema(data2)
- geowatch.rc.load_region_model_schema(strict=True)[source]¶
- Parameters:
strict (bool) – if True we make a few changes the schema to be more permissive towards things like region names and originator.
- Returns:
the schema
- Return type:
Dict
CommandLine
xdoctest -m geowatch.rc.registry load_region_model_schema
Example
>>> from geowatch.rc.registry import * # NOQA >>> data1 = load_region_model_schema(strict=True) >>> data2 = load_region_model_schema(strict=False) >>> import rich >>> rich.print('data = {}'.format(ub.urepr(data1, nl=-2))) >>> rich.print('data = {}'.format(ub.urepr(data2, nl=-2))) >>> import jsonschema >>> cls = jsonschema.validators.validator_for(data1) >>> cls.check_schema(data1) >>> cls = jsonschema.validators.validator_for(data2) >>> cls.check_schema(data2)