-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fixes #2161: #2162
Fixes #2161: #2162
Conversation
@@ -88,9 +88,9 @@ public TableFormula(IInterpolation interpolation) | |||
UseDerivedValues = true; | |||
} | |||
|
|||
public virtual IEnumerable<ValuePoint> AllPoints() => _allPoints; |
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.
just garbage
var tableFormula = comparison.Object1.DowncastTo<TableFormula>(); | ||
return Captions.Comparisons.ValuePointAt(tableFormula.Name, formulaOwnerName, tableFormula.XDisplayValueFor(valuePoint.X)); | ||
//We do not use enumerable comparison here as we need to compare the values by index | ||
_enumerableComparer.CompareEnumerablesByIndex(comparison, x => x.AllPoints); |
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.
here we compare by index. That way comparison of tables with two points with very close x axis does not fail for no reason
Once this is merge, I'll update PK-Sim |
} | ||
|
||
[Observation] | ||
public void should_report_the_path_entries_and_different_entries_as_difference() |
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.
you mean should_not_report_the_path_entries_and_different_entries_as_difference right?
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.
the name is copied from the previous method which was also wrong.
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.
I think the observation method name just needs to be changed.
Fixes #2161
Description
Comparision of tables should be done by trying to find matching points by axis. Instead, two tables are equal when all points in their order are the same. So we needed to introduce a comparison by index
Type of change
Please mark relevant options with an
x
in the brackets.How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Reviewer checklist
Mark everything that needs to be checked before merging the PR.
This change requires a documentation update
above is selectedScreenshots (if appropriate):
Questions (if appropriate):