Skip to content

Commit

Permalink
Updating odak.learn.wave.get_impulse_response_fresnel_kernel().
Browse files Browse the repository at this point in the history
  • Loading branch information
kaanaksit committed Sep 16, 2024
1 parent dce8c49 commit 321760f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions odak/learn/wave/classical.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ def get_impulse_response_fresnel_kernel(nu, nv, dx = 8e-6, wavelength = 515e-9,
wxs = torch.linspace(- dx / 2., dx / 2., aperture_samples[0], device = device)
wys = torch.linspace(- dx / 2., dx / 2., aperture_samples[1], device = device)
h = torch.zeros(nu * scale, nv * scale, dtype = torch.complex64, device = device)
pxs = torch.linspace(- dx / 2., dx / 2., 5, device = device)
pys = torch.linspace(- dx / 2., dx / 2., 5, device = device)
pxs = torch.linspace(- dx / 2., dx / 2., aperture_samples[2], device = device)
pys = torch.linspace(- dx / 2., dx / 2., aperture_samples[3], device = device)
for wx in tqdm(wxs):
for wy in wys:
for px in pxs:
Expand Down

0 comments on commit 321760f

Please sign in to comment.