Add a user-friendly wrapper around ptycho.reconstruct that implements a simple multi-grid reconstruction.
Approach
Downsamples the ptychography problem by powers of 2 a requested number of times. Then performs the requested number of iterations at all levels. Each level provides the initial guess for the next higher-resolution level via upsampling. Parameters are upsampled using scipy.ndimage.zoom which uses spline interpolation. Used zoom because it was convenient, but also the splines provide smooth transition from low resolution to high.
Purpose
Add a user-friendly wrapper around ptycho.reconstruct that implements a simple multi-grid reconstruction.
Approach
Downsamples the ptychography problem by powers of 2 a requested number of times. Then performs the requested number of iterations at all levels. Each level provides the initial guess for the next higher-resolution level via upsampling. Parameters are upsampled using scipy.ndimage.zoom which uses spline interpolation. Used zoom because it was convenient, but also the splines provide smooth transition from low resolution to high.
Comparison of different re-gridding methods here: https://anl.box.com/s/uwbh80n0vz37dmtjbbnsig53m53as0fr
Pre-Merge Checklists
Submitter
Reviewer