eegyolk.config module¶
Copyright 2022 Netherlands eScience Center and Utrecht University. Licensed under the Apache License, version 2.0. See LICENSE for details.
This file contains one method to let the user configure all paths instead of hard-coding them.
- class eegyolk.config.Config(location=None)¶
Bases:
object- default_layout = {'data': '{}/data', 'data_2022': '{}/data', 'metadata': '{}/metadata', 'metadata_2022': '{}/metadata', 'models': '{}/models', 'models_2022': '{}/models', 'preprocessed': '{}/preprocessed', 'preprocessed_2022': '{}/preprocessed', 'root': '{}', 'root_2022': '{}'}¶
- default_locations = ('./config.json', '/home/docs/.eegyolk/config.json', '/etc/eegyolk/config.json')¶
- get_directory(directory, value=None)¶
- load(location)¶
- merge(raw)¶
- required_directories = ('data', 'metadata', 'data_2022', 'metadata_2022')¶
- roots = {'root': ('data', 'metadata', 'preprocessed', 'models'), 'root_2022': ('data_2022', 'metadata_2022', 'preprocessed_2022', 'models_2022')}¶
- usage(message)¶
- validate(merged)¶