mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-09-09 13:02:41 +02:00
fix the oversampling + finite pixel issue
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user