-
Notifications
You must be signed in to change notification settings - Fork 95
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
adding tests for priors #519
Conversation
I currently see the following failures:
@robbietuk could you try the QuadraticPrior with your Python test? |
My python QP test seems reasonable. I do not have edge effects. |
I've brought this up-to-date, but not changed the tests themselves. |
Is it worth rebasing instead? The commit history and file changes are a bit of a mess :/ |
hmmm. weird. I'll do that. |
currently failing...
08856f2
to
bb6b0df
Compare
ok, it was on release_4, with some stuff happening in between. cleaner now |
src/recon_test/test_priors.cxx
Outdated
target_type::full_iterator target_iter=target.begin_all(); | ||
target_type::full_iterator gradient_iter=gradient_sptr->begin_all(); | ||
target_type::full_iterator gradient_2_iter=gradient_2_sptr->begin_all(); | ||
const float eps = 1e-2F; |
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.
This is too large a perturbation that results in the test failing for QP. When this value is reduced to 1e-3 or 1e-4, the QP test passes.
Would resolve #153 |
reduced value of epsilon
Hi, I have made some changes to this PR, like including the relative difference prior (which fails) but I do not have permission to push to the branch. |
I notice that Travis is green now. thanks for the advice on either do a PR on this one, or just start a new one (might be easiest). depending on what your changes are, we could merge this one first. As you prefer. could you check the Codacy warning? https://app.codacy.com/manual/KrisThielemans/STIR/pullRequest?prid=5421028 |
I'll try merging to your branch and check Codacy. Also while travis is passing, I am not sure it is actually running e: Codacy is upset because it thinks that |
superseded by #695 |
currently failing...