armi.matProps.dataSchema.dataSchemaValidator module

Script to validate data format using schema.

armi.matProps.dataSchema.dataSchemaValidator.keysToString(d)[source]

Used to change numeric keys in YAML, to strings, because JSON cannot parse numbers as keys.

armi.matProps.dataSchema.dataSchemaValidator.loadSchema()[source]

This function loads the schema for validation.

armi.matProps.dataSchema.dataSchemaValidator.validateFile(file_name)[source]

This function validates a single YAML given a file after –file.

armi.matProps.dataSchema.dataSchemaValidator.validateDir(dir_name)[source]

Validate a folder of YAMLs within dataShema.

It combines the path to data_schema with the folder provided, then loops through the YAMLs in the folder.