-
Notifications
You must be signed in to change notification settings - Fork 31
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
(Fix) Error velocity QC should be & not | #767
Conversation
3259e2d
to
c9ee603
Compare
@BecCowley do you know why the following change was made?
to
(link to the corresponding commit here) This was committed in Aug 2020 and included in the last release (20 Apr 2021) but the wiki wasn't updated. |
@evacougnon. Yes, I put this in because I noticed that error velocity is very rarely centered around zero. If we use an absolute threshold, we might be biasing the QC process. However, I'm not convinced about this change yet. |
@BecCowley , thanks for the explanation. I have 2 concerns with the current version of the code:
If we park this fix for now, I'd be keen to revert to the original code |
@evacougnon, the code will flag anything outside the mean +/- the threshold as fail (I think it does that in a later line?). |
Hello, The problem is not the & or | operator, It is the sign. The expression should be:
I don't know about you, but when I read the original code I saw the expression above instead of the actual code. I just tested it this morning and I went straight and wrote the code myself to mark everything distant around the mean. Then I went back to the code and saw that the sign error. A typical case of being more explicit helps a lot:
I believe the above code could hardly pass a code session (or a review) if it was written the opposite way ( |
Just checking I'm not missing something, is this equivalent to
Don't know if one form or another is more efficient. |
yeap |
@hugo-sardi, Your example would give anything outside the mean +/- the threshold. Therefore, it should be: Yes? |
@BecCowley - yeap - the snipped above is to be assign to iFail. I will correct the comment to avoid confusion |
Originally submitted by @BecCowley :
Supersedes #756