pelagos_py.steps.input_output.format_check#
- pelagos_py.steps.input_output.format_check.console_summary(checker_name, result, passed, top=3)[source]#
One-line summary of a checker’s result: score, issue count and the worst checks.
- class pelagos_py.steps.input_output.format_check.FormatCheck(name, parameters=None, diagnostics=False, context=None)[source]#
Bases:
pelagos_py.steps.base_step.BaseStepRun the IOOS file-format compliance checker and report the result.
Does not run on the in-memory dataset; it re-reads the file from disk. A short pass/fail summary is always logged. With
diagnosticson the full report is printed as well; JSON and/or RST report files are written when requested viaoutput_typeand anout_directoryis set.- Parameters:
src (path or str, optional) – File to check. If omitted, falls back to the file loaded by a preceding
Load OG1step.standards (list of str) – Standards to check, e.g.
['cf', 'og'](og= OG1).output_type (str or list of str, optional) – Report file(s) to save:
'json','rst', or a list of both. Omit (default) to save nothing. Requiresout_directoryin the config.proceed_on_fail (bool) – If False, halt the pipeline when the file fails the checks.