Skip to content

Commit

Permalink
Fix psf shape for torch array.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzam committed May 14, 2024
1 parent 754502e commit aca35f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Changed
Bugfix
~~~~~~

- Nothing
- Wavelength input to ``compute_psf`` for Mask class.


1.0.7 - (2024-05-14)
Expand Down
2 changes: 1 addition & 1 deletion lensless/hardware/mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def compute_psf(self, distance_sensor=None, wavelength=None, intensity=True):

if self.use_torch:
psf = torch.zeros(
tuple(self.resolution) + (len(self.psf_wavelength),),
tuple(self.resolution) + (len(wavelength),),
dtype=torch.complex64,
device=self.torch_device,
)
Expand Down

0 comments on commit aca35f1

Please sign in to comment.