4.1.1.1. wc_lang.config package

4.1.1.1.1. Submodules

4.1.1.1.2. wc_lang.config.core module

Configuration

Author

Jonathan Karr <jonrkarr@gmail.com>

Author

Arthur Goldberg <Arthur.Goldberg@mssm.edu>

Date

2019-01-06

Copyright

2017-2019, Karr Lab

License

MIT

wc_lang.config.core.get_config(extra=None)[source]

Get configuration

Parameters

extra (dict, optional) – additional configuration to override

Returns

nested dictionary with the configuration settings loaded from the

configuration source(s).

Return type

configobj.ConfigObj

wc_lang.config.core.get_debug_logs_config(extra=None)[source]

Get debug logs configuration

Parameters

extra (dict, optional) – additional configuration to override

Returns

nested dictionary with the configuration settings loaded from the configuration source(s).

Return type

configobj.ConfigObj

wc_lang.config.core.validate_config(config)[source]

Validate configuration

  • Check that flux_min_bound >= 0 and flux_max_bound >= flux_min_bound

Parameters

config (configobj.ConfigObj) – nested dictionary with the configuration settings

Raises

ValueError – if minimum dFBA flux bound is negative or the maximum dFBA flux bound is less than the minimum dFBA flux bound

4.1.1.1.3. Module contents