Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert generators do not mutate inputs #8

Merged
merged 4 commits into from
Aug 6, 2024
Merged

Conversation

cboulay
Copy link
Contributor

@cboulay cboulay commented Jun 15, 2024

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
Copy link
Contributor Author

cboulay commented Jun 15, 2024

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.

@cboulay cboulay merged commit b9df1be into cboulay/axarr_labels Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant