We gratefully accept contributions of new time-series features, be they domain-specific or general. Please follow the guidelines below so that your features are successfully incorporated into the cesium
feature base.
- Add any new numerical code to a new or existing file in
cesium/features/
. - In
cesium/features/graphs.py
, add feature names to a new or existing list of features (see, e.g.,GENERAL_FEATS
). - In
cesium/features/graphs.py
, add feature computations to a new or existingdask
graph of computations (see, e.g.,GENERAL_GRAPH
).- By default, the keys
't'
,'m'
, and'e'
refer to the time series times, measurements, and errors respectively. - Most features will consist of a single function call, e.g.
{'amplitude': (amplitude, 'm')}
. - More complicated operations which re-use intermediate values can be constructed via standard
dask
graph syntax: see thedask
documentation for details, or the featurefreq1_freq
ingraphs.py
for an example.
- By default, the keys