-
Notifications
You must be signed in to change notification settings - Fork 175
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
Track offset in Signals #1157
Track offset in Signals #1157
Conversation
Dude, c'mon. This isn't conducive to a friendly / helpful environment. |
Honestly, it is not clear to me what is offensive about this sentence. To clarify anyways: There are PRs where it is reasonable to dive directly into the diff. I don't think this is one of these PRs, it is probably easier to understand the changes after understanding the problem. That's why I suggest starting with that part first. |
It's not offensive, it just comes across as sarcastic / curt. Fair enough the comment describing the problem (which explains it quite well!) is linked in the motivation, but just reposting it in that section would be much more friendly / useful:
I get sometimes people can dive straight into the diff, but suggesting people understand the problem to help understand the solution isn't really helpful 😜 It's just a tone thing too, eh? Emoji's help too 🎉 ✋ 🍰 😈 |
I suppose, I can see that it comes across as curt. Sometimes filling in all that information feels to be more work than the actual changes. That's certainly warranted in some cases, but with straight-forward changes it starts to annoy me. Sure, I could delete redundant/unhelpful sections in those cases, but to me the template imposes a psychological barrier to do so. Anyways, I'll try to better myself. |
LGTM. |
Sorry it took so long for me to get to this one! Looked it over now and played around with NumPy enough so I understand it ;) Looks great! I made a few fixup commits for minor style and to add an |
LGTM 🍰 |
TravisCI is complaining because |
Allows views of Signals with views as initial_value. Fixes #1156.
`test/test_builder.py` made sense as a location for builder tests when the builder was just a file, but now that it's a folder a separate test folder makes more sense. This commit moves all the tests that were in `test_builder.py` to better locations, either `builder/tests/test_signal.py` or `tests/test_simulator.py`.
Description:
Makes Signals track the offset instead of computing it from the initial value.
Motivation and context:
See #1156, including this comment.
How has this been tested?
Added two unit tests. One is just dependent on the Signal and tests the offset value. The other one reproduces the original problem with the node input from #1156 (a bit simplified).
Where should a reviewer start?
Probably best to understand the problem first, then to look at the changes in
signal.py
.How long should this take to review?
Types of changes:
Checklist: