httomo.utils.save_2d_snapshot

httomo.utils.save_2d_snapshot#

httomo.utils.save_2d_snapshot(data_slice: cupy.ndarray, methods_name: str, section_index: int) None[source]#

A utility to save stage snapshots as images to help debugging process

Parameters:
  • data_slice (xp.ndarray) – a 2D array to save as a jpeg image

  • methods_name (str) – the name of the image to be saved (e.g. method’s name)

  • section_index (int) – the index of the section