tomodrgn.dose.plot_weight_distribution#

plot_weight_distribution(cumulative_weights: ndarray, spatial_frequencies: ndarray, outdir: str, plot_format: Literal['png', 'svg'], weight_distribution_index: int | None = None) None[source]#

Plot distribution of dose weights across tilts in the spirit of https://doi.org/10.1038/s41467-021-22251-8

Parameters:
  • cumulative_weights – array of weights applied per spatial frequency per tilt, shape (ntilts, D, D)

  • spatial_frequencies – numpy array of spatial frequency at each pixel (units 1/Å), shape (D, D), dtype float

  • outdir – directory in which to save plot(s)

  • plot_format – file format with which to save plots

  • weight_distribution_index – useful if performing related repeated calls to this function with different parameters

Returns:

None