Skip to content

pypty.direct

wdd

Perform Wigner Distribution Deconvolution (WDD).

This function applies Wigner Distribution Deconvolution to the provided data, allowing for enhanced reconstruction of complex objects and probes. It handles both GPU (via CuPy) and CPU (via NumPy) computations based on the availability of CuPy. The pypty_params dictionary must be prepared via the initialize module.

PARAMETER DESCRIPTION
pypty_params

Dictionary containing calibrated parameters, including paths and settings for data processing.

TYPE: dict

eps_wiener

Epsilon parameter for the Wiener filter. Default is 1e-3.

TYPE: float DEFAULT: 0.001

thresh

If provided, eps_wiener is ignored. Denominator values below this threshold are set to 1, and the corresponding numerator values are set to 0.

TYPE: float DEFAULT: None

save

Whether to save output files (False by default). Ignored if save_preprocessing_files is specified in pypty_params.

TYPE: bool DEFAULT: 0

RETURNS DESCRIPTION
deconvolved_object

2D deconvolved complex object.

TYPE: ndarray

Notes

Make sure pypty_params includes all necessary paths and data arrays prior to calling this function.