<jupyter_start><jupyter_text>Load a StreamConfig object from a Python dictionary<jupyter_code>from ioos_qc.config import StreamConfig
config = {
    'qartod': {
        'aggregate': {},
        'gross_range_test': {
            'suspect_span': [1, 11],
            'fail_span': [0, 12],
        }
    }
}
c = StreamConfig(config)
c.config<jupyter_output><empty_output><jupyter_text>Load a StreamConfig object from a YAML string<jupyter_code>from ioos_qc.config import StreamConfig
config = """
    qartod:
        aggregate:
        gross_range_test:
            suspect_span: [1, 11]
            fail_span: [0, 12]
"""
c = StreamConfig(config)
c.config<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11566617862371889, 'fraction_numerical': 0.017569546120058566, 'mean_word_length': 3.1707317073170733, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '416877', 'license': 'Apache-2.0', 'n_tokens_mistral': 248, 'n_tokens_neox': 237, 'n_words': 47, 'path': 'docs/source/examples/usage/StreamConfig.ipynb', 'repo_name': 'glos/ioos_qc', 'size': '683'}