-
Notifications
You must be signed in to change notification settings - Fork 17
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
Resolve #530 #531
Resolve #530 #531
Conversation
@@ -122,6 +122,11 @@ def test_adjoint_typical_input(testobj): | |||
adjoint_test(A, x=x, rtol=get_tol()) | |||
|
|||
|
|||
def test_fbp(testobj): | |||
x = testobj.A.fbp(testobj.y) | |||
assert np.sum(np.abs(x)) > 0.0 |
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.
Consider checking that x
is reasonably close to testobj.x
.
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.
That did occur to me, but I decided against it because it wasn't obvious how to choose a reasonable threshold for "reasonably close". But easy to add if you think it's nevertheless worthwhile.
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.
On further consideration, I think what I'd prefer is a comment to the effect of "checks for bug where fbp
would return all zeros when because ASTRA CPU FBP algorithm was being called on a GPU system."
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.
Done. Please confirm approval.
Resolve #530.