-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature/451 ssp linear transformations #454
Conversation
I like it! I'd prefer we avoid |
# Conflicts: # include/cse/connection/scalar_connection.hpp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
I take it that the positive feedback means we agree on this approach? Add test, and then we have an approval? |
Should we require that all features that we implement for SSP must also be implemented for OspSystemStructure? Since we have defined the latter as our primary format, it would perhaps seem strange if the SSP support wasn't a subset of that. |
I think this is to strict. What if However, this particular feature should definitively be supported in both. But not necessarily in the same PR. If it was up to me though, |
Chew on that a little bit. That would in practice mean that we could use the same parser for both formats. |
I'm happy with approving this once a test is in place. This feature should definitely be available for On the topic of |
Agreed. We don't have that much time left in this project, and I would even say that |
Unless SSP is abandoned, I reckon it will continue to be favored from mine and NTNUs side. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK!
Next time please wait for approval before merging. |
I took your last comment as an approval. Sorry about that. |
double offset = 50; | ||
double factor = 1.3; | ||
double target = factor * initialValue + offset; | ||
BOOST_REQUIRE_CLOSE(transformedValue, target, 1e-9); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be interesting for future usage/debugging: The tolerance parameter (1e-9
here) represents a percentage value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auch. Well, we'll fix that. What would a decent value here be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be interesting for future usage/debugging
Nice thing about Boost.test vs the others tests is that the what and where is shown, so it would not have been difficult to see what happened.
Anyway fixed in: #472
Closes #451
Should add test, but want to hear feedback first.