Commit 8b1077ab authored by Matthijs's avatar Matthijs
Browse files

notes

parent 7f014975
......@@ -157,8 +157,10 @@ class Phase(Problem):
self.output[key] = array_tools.roll_to_pos(self.output[key], pos=center)
# This sequence will work for objects *with a small support* even if they lie over the edge of the array
if 'interpolate_result' in self.config and self.config['interpolate_result']:
# TODO: compatibility with non-2d iterates, particularly 3D
self.output[key] = interpolation.fourier_interpolate(self.output[key])
if 'zoomin_on_result' in self.config and self.config['zoomin_on_result']:
# TODO: compatibility with non-2d iterates, particularly 3D
if self.output[key].ndim == 2:
zmy, zmx = self.output[key].shape # self.config['Ny'] // 4, self.config["Nx"] // 4
self.output[key] = self.output[key][zmy:-zmy, zmx:-zmx]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment