ezmsg-org / ezmsg-sigproc

Timeseries signal processing implementations for ezmsg
MIT License
0 stars 0 forks source link

Assert generators do not mutate inputs #8

Closed cboulay closed 3 months ago

cboulay commented 5 months ago

I added some checks to the unit tests that the inputs are not mutated (relative to a preliminary copy.deepcopy() backup) after being processed.

Then I cleaned up some of the generators to make sure these all passed, and a little for legibility.

Note that this PR is using #1 as a base. If #1 is merged first then this should be rebased on dev.

cboulay commented 5 months ago

I recreated the GenAxisArray(ez.Unit) base class from ezmsg.util here in ezmsg-sigproc. I will soon remove this class from ezmsg.util.messages.modify in the core ezmsg repo because that's the only Unit using it there.