[ ] Use pre-commit (see README) to make sure that your code follows style guidelines.
Why?
Cryo-EM image formation model has different characteristics depending on whether it is formulated in image space (real space) or Fourier space (reciprocal space).
The community needs to be able to experiment with both formulations of the image formation model.
What?
config
input to the docstrings of the simSPI/linear_simulator/shift_utils.py module.Why?
Cryo-EM image formation model has different characteristics depending on whether it is formulated in image space (real space) or Fourier space (reciprocal space).
The community needs to be able to experiment with both formulations of the image formation model.
Where?
Shift
class is located in the simSPI/linear_simulator/shift_utils.py module.How?
shift_utils.py
module intoshift.py
and make sure the unit-tests and notebooks run.config
input to theShift
class to have aspace
key, where the value will be eitherimage
orfourier
.forward
method into a private_forward_fourier
method._forward_image
method, with the projection operation in fourier space.forward
method that calls either_forward_image
or_forward_fourier
depending on the value in theself.config
attribute.Details on the cryo-EM image formation models can be found in Donnat et al 2022.