Configuration Processing

range_driver.config.get_column_info(config)[source]

Retreives the column information from the configuration object, including which columns have been indicated for further analysis.

range_driver.config.make_params(config)[source]

Creates a params object from our configuration, for use during plotting and reporting.

range_driver.config.prepare_bounds(bounds)[source]
range_driver.config.prepare_config(config, config_prepare_hooks={'bounds': <function prepare_bounds>, 'data:tidal': <function <lambda>>, 'file_map': <function prepend_data_dir>, 'reader:nsog': <function <lambda>>, 'reader:otn': <function <lambda>>})[source]

Apply transformations to config dicts to make them easier to use.

Parameters
  • config (dict) – Configuration dictionary to transform

  • config_prepare_hooks (dict) – Dictionary of the functions. which will be used to transform the config dictionaries. Keys can contain “:” separators to access nested elements.

Returns

A new dictionary which is created by applying the config_prepare_hooks functions to the config dictionary.

Return type

dict

range_driver.config.prepend_data_dir(d, keys=None, data_dir_key='data_dir')[source]