-
Notifications
You must be signed in to change notification settings - Fork 13
#455 Created reference testing values file #552
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
Conversation
jan-petr
left a comment
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.
Not really what I had on my mind - sorry ;)
I meant save those values in a easy-to-read format for Matlab - i.e. TSV or MAT file, so that it can be read and parsed by Matlab.
Then in function xASL_qc_TestExploreASL in section 8 (line 465), it will read this reference table from a fixed location. And compare with the results table calculated here and then output either 1 or 0 if the difference in all fields is below 0.1% or not.
The aim is that we don't have to compare the old and new results by eye, but automatically. And that we have a fixed saved reference.
|
Hey guys, I didn't want to interfere here, but maybe we can close this PR before v1.7.0 because the branch is already behind by a lot of commits. |
Great Michael. Have you tested that this works? I will re-run and test everything... |
|
|
The comparison part is still missing, but I can write that this morning. If you want to keep on updating this, maybe a .mat file will be easier than a .tsv file. |
OK. Please do so. I do like the TSV file actually. Especially the fact that it is human readable. I would keep it, it can be nicely and automatically read, I don't see a huge disadvantage in it... |
|
@jan-petr: It works for me on windows now :) |
jan-petr
left a comment
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.
Perfect. I get the difference table. And prints the xASL version, but can I also get a simple 1/0 passed not passed - i.e. checking if all values are below 0.01% or something. Also if both tables have "n/a" entry, then the error should be 0%, otherwise, with single n/a it should be 100%.
Test with 3 versions...
Version: xASL_v1_6_0
OS: Linux_2016b
Version: xASL_v1_6_1
OS: Linux_2016b
Version: xASL_v1_6_2
OS: Linux_2016b
...
Version: xASL_v1_6_0
Passed: false
Version: xASL_v1_6_1
Passed: false
Version: xASL_v1_6_2
Passed: false
... |
jan-petr
left a comment
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.
OK. Increased the tolerance to 1%, 0.1% was too optimistic :)
Also ignoring strings...
7ac7162 to
f0e250a
Compare
f0e250a to
7ac7162
Compare
Check all versions & store a passed variable (all passed or not)
7ac7162 to
23fa24c
Compare
closes #455