Closed cboulay closed 9 months ago
Agreed the zero padding is suboptimal... I really need one-to-one behavior in some of my pipelines (one input results in one output) in order to track completion of processing, so this was the necessary evil. Nans would have been a better choice for padding here, but would likely break the existing filter implementation.
I'm happy to accept this so long as it maintains current behavior as the default. We can deprecate this as a default with a warning.
I've completely rewritten this, using the generator pattern and adding way more unit tests.
I'll make this a draft for now while I prepare another PR that my new version depends on, then I'll update this PR.
Note - this is based off #62 and requires #62 to be valid. Of the 4 commits (so far), only the 2nd and 3rd are in question, as the first is from the other PR and the 4th is a cherry-pick from another PR that was already merged into
main
, but notdev
(and I need it indev
).In this PR, I...
I also noticed that the initialization of the buffer creates a
window
-length buffer that's all zeros. Then, when new data comes in, the first window out comes only from the initialized zeros! I highly doubt that we want a completely fabricated window as the first window through the pipeline.I added a new
zero_pad_until
setting.