-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add to sirf classes #13
base: master
Are you sure you want to change the base?
Conversation
added: copy, conjugate closes Hackathon-SIRF/#7
notice that it's not taking into consideration #2 (comment)
for MR images dot operator calculates the inner product with conjugate by itself.
changed AcquisitionModel to inherit from object.
closes #7
@paskino, any reason why this isn't a PR to the main repo? |
I believe Matthias and I were busy trying to tidy up also the other bits of integration of cil/sirf. I guess I should do that. |
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.
to test copy:
diff = acq_data.copy() - acq_data.clone()
print('norm of acq_data.copy() - acq_data.clone(): %e' % diff.norm()
@@ -150,6 +150,19 @@ def main(): | |||
|
|||
back_projected_image_as_array = back_projected_image.as_array() | |||
show_2D_array('Backprojection', back_projected_image_as_array[z,:,:]) | |||
|
|||
acq_model.direct(image, 0, 4, simulated_data) | |||
# simulated_data = acq_model.forward(image, 0, 4) |
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.
lines 155-157 are not needed
Work in progress