From 4c9e5feace23fb41fa341bd208774646209ab8cd Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 30 Sep 2021 07:41:09 -0400 Subject: [PATCH] Expose dollar volume to fsp engine It can now be declared inside an fsp config dict under the name `dolla_vlm`. We still need to offer an engine control that zeros the newest sample value instead of copying from the previous. This also litters the engine code with `pyqtgraph` profiling to see if we can improve startup times - likely it'll mean pre-allocating a small fsp daemon cluster at startup. --- piker/fsp/_engine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/piker/fsp/_engine.py b/piker/fsp/_engine.py index 2b7056da..bc55e154 100644 --- a/piker/fsp/_engine.py +++ b/piker/fsp/_engine.py @@ -34,7 +34,7 @@ from ..data import attach_shm_array from ..data.feed import Feed from ..data._sharedmem import ShmArray from ._momo import _rsi, _wma -from ._volume import _tina_vwap +from ._volume import _tina_vwap, dolla_vlm log = get_logger(__name__) @@ -42,6 +42,7 @@ _fsp_builtins = { 'rsi': _rsi, 'wma': _wma, 'vwap': _tina_vwap, + 'dolla_vlm': dolla_vlm, } # TODO: things to figure the heck out: