Skip to content
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

Merged
merged 4 commits into from
Jun 12, 2024
Merged

Resolve #530 #531

merged 4 commits into from
Jun 12, 2024

Conversation

bwohlberg
Copy link
Collaborator

Resolve #530.

@bwohlberg bwohlberg added the bug Something isn't working label Jun 7, 2024
@@ -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
Copy link
Contributor

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.

Copy link
Collaborator Author

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.

Copy link
Contributor

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."

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Please confirm approval.

@bwohlberg bwohlberg merged commit e7df8d2 into main Jun 12, 2024
18 checks passed
@bwohlberg bwohlberg deleted the brendt/issue530 branch June 12, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interface to ASTRA FBP broken on GPU devices
3 participants