rfwtools.config

This module is used for managing the configuration of rfwtools.

This module contains as single class, a Singleton, that manages the configuration of many parts of rfwtools. This includes the definition of several resource locations, debug behavior, and filters on valid data.

Basic Usage:

from rfwtools.config import Config
config = Config()
config.output_dir = '/path/to/my/save/files/'

# Or equivalently

Config().output_dir = '/path/to/my/save/files/'

Config File Example:

Most values are straightforward. exclude_times is a list of lists where null implies None.

app_dir: /projects/rfw-stuff
data_dir: /projects/rfw-stuff/data/waveforms/data/rf
data_server: accweb.acc.jlab.org
debug: true
exclude_times:
- - 2020-01-01 12:34:56.700000
  - 2020-01-02 12:34:56.700000
- - 2020-01-03 12:34:56.700000
  - null
exclude_zones:
- 1L07
label_dir: /projects/rfw-stuff/data/labels
output_dir: /projects/rfw-stuff/processed-output
wfb_base_url: wfbrowser

Classes

Config()

A singleton class for containing application configuration.