CDFValidator

class swxsoc.util.validation.CDFValidator(schema: SWXSchema | None = None)[source]

Bases: SWXDataValidator

Validator for CDF files.

Parameters:

schema (SWXSchema, optional) – optional custom SWXSchema object to use for validation.

Methods Summary

validate(file_path)

Validate the CDF file.

Methods Documentation

validate(file_path: Path) list[str][source]

Validate the CDF file.

Parameters:

file_path (pathlib.Path) – A fully specified file path of the CDF data file to validate.

Returns:

errors (list[str]) – A list of validation errors returned. A valid file will result in an empty list being returned.