Skip to content

sysid: avoid mutating input in apply_delay - #3473

Open
anxkhn wants to merge 1 commit into
google-deepmind:mainfrom
anxkhn:fix/sysid-delay-input-mutation
Open

sysid: avoid mutating input in apply_delay#3473
anxkhn wants to merge 1 commit into
google-deepmind:mainfrom
anxkhn:fix/sysid-delay-input-mutation

Conversation

@anxkhn

@anxkhn anxkhn commented Aug 13, 2026

Copy link
Copy Markdown

Summary

Copy time-series data before writing delayed sensor values.

apply_delay() constructed its result from the input array and then modified it in place, which also changed the caller's TimeSeries. The result now owns a copy before delayed samples are assigned.

Tests

  • Added a regression test confirming the input remains unchanged
  • Verified the returned delayed signal differs as expected

@anxkhn

anxkhn commented Aug 13, 2026

Copy link
Copy Markdown
Author

hey @yuvaltassa, could you please review this pr when you have a chance?

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