fix the oversampling + finite pixel issue

This commit is contained in:
Abe Levitan
2023-03-15 12:05:54 -07:00
parent 10cffb62c3
commit a5699ed508
+2 -2
View File
@@ -126,8 +126,8 @@ class FancyPtycho(CDIModel):
Is = t.arange(self.probe.shape[-2], dtype=t.float32)
Js = t.arange(self.probe.shape[-1], dtype=t.float32)
Is, Js = t.meshgrid(Is/t.max(Is), Js/t.max(Js))
self.I_phase = 2 * np.pi* Is
self.J_phase = 2 * np.pi* Js
self.I_phase = 2 * np.pi* Is * self.oversampling
self.J_phase = 2 * np.pi* Js * self.oversampling
self.simulate_finite_pixels = simulate_finite_pixels