Add probe propagation with initialization as a base feature to fancy_ptycho, and fix the test for orthogonalize_probes

This commit is contained in:
Abe Levitan
2019-05-03 12:30:53 -04:00
parent 26de79ca92
commit 22899288fc
7 changed files with 70 additions and 26 deletions
+5 -3
View File
@@ -27,12 +27,14 @@ if __name__ == '__main__':
synth_probe, synth_obj, aligned_objs = synthesize_reconstructions(
dataset['probe'], dataset['obj'], args.use_probe)
print(dataset['basis'])
print(synth_probe.shape)
freqs, prtf = calc_consistency_prtf(synth_obj, aligned_objs, dataset['basis'])
plotting.plot_phase(dataset['probe'][0][0]),basis=dataset['basis'])
plotting.plot_amplitude(dataset['probe'][0][0]),basis=dataset['basis'])
plotting.plot_colorized(dataset['probe'][0][0]),basis=dataset['basis'])
plotting.plot_phase(synth_probe,basis=dataset['basis'])
plotting.plot_amplitude(synth_probe,basis=dataset['basis'])
plotting.plot_colorized(synth_probe,basis=dataset['basis'])
try:
plotting.plot_phase(synth_probe[1],basis=dataset['basis'])