zipline
zipline copied to clipboard
Unused/Unusable freq_filter in HistoryContainer
The function update_digest_panels seems to only be used once in the code and it does not receive a freq_filter and since the user has little reason to use the update_digest_panels I was wondering why is it even there. Moreover, since self.unique_frequencies is either '1m' or '1d' then how is it possible to filter?
def update_digest_panels(self, algo_dt, buffer_panel, freq_filter=None):
"""
Check whether @algo_dt is greater than cur_window_close for any of our
frequencies. If so, roll a digest for that frequency using data drawn
from @buffer panel and insert it into the appropriate digest panels.
If @freq_filter is specified, only use the given data to update
frequencies on which the filter returns True.
This takes `buffer_panel` as an argument rather than using
self.buffer_panel so that this method can be used to add supplemental
data from an external source.
"""
for frequency in filter(freq_filter, self.unique_frequencies):
I think this implementation of history is gone now.