Closed cboulay closed 2 months ago
This PR adds a .key field to AxisArray then adds a couple functionalities related to it:
.key
AxisArray.concat(..., filter_key="some key")
AxisArray.concat(..., filter_key=None)
""
set_key
SetKey
FilterOnKey
This is a redo of #145 without the ArrayChunker stuff.
I will merge this because it was agreed on ahead of time. I'm willing to make any requested changes that might come after the merge.
This PR adds a
.key
field to AxisArray then adds a couple functionalities related to it:AxisArray.concat(..., filter_key="some key")
will only concatenate messages with matching keysAxisArray.concat(..., filter_key=None)
(default) will not filter but will set key to""
(default) if keys are not matching.set_key
generator orSetKey
Unit sets the .key field to a new value.FilterOnKey
(Unit only) only allows through messages with matching .key value.This is a redo of #145 without the ArrayChunker stuff.