Skip to content

Detectors¤

cryojax.simulator.AbstractDetector

cryojax.simulator.AbstractDetector ¤

Base class for an electron detector.

compute_expected_counts(fourier_intensity: Complex[Array, '{image_config.padded_y_dim} {image_config.padded_x_dim//2+1}'], image_config: DoseImageConfig, *, outputs_real_space: bool = True) -> Complex[Array, '{image_config.padded_y_dim} {image_config.padded_x_dim//2+1}'] | Float[Array, '{image_config.padded_y_dim} {image_config.padded_x_dim}'] ¤

Compute the expected electron counts from the detector.

sample_counts(key: PRNGKeyArray, fourier_intensity: Complex[Array, '{image_config.padded_y_dim} {image_config.padded_x_dim//2+1}'], image_config: cryojax.simulator.DoseImageConfig, *, outputs_real_space: bool = True) -> Complex[Array, '{image_config.padded_y_dim} {image_config.padded_x_dim//2+1}'] ¤

Measure the electron counts from the detector.