Skip to content

Commit

Permalink
Cast tuples to ndarrays
Browse files Browse the repository at this point in the history
  • Loading branch information
andykee committed Dec 21, 2023
1 parent e10b4e8 commit 3d55b88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lentil/propagate.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ def propagate_dft(wavefront, pixelscale, shape=None, prop_shape=None,

ptype_out = _propagate_ptype(wavefront.ptype, method='fraunhofer')

shape = wavefront.shape if shape is None else np.broadcast_to(shape, (2,))
prop_shape = shape if prop_shape is None else np.broadcast_to(prop_shape, (2,))
shape = np.asarray(wavefront.shape) if shape is None else np.broadcast_to(shape, (2,))
prop_shape = np.asarray(shape) if prop_shape is None else np.broadcast_to(prop_shape, (2,))
shape_out = shape * oversample
prop_shape_out = prop_shape * oversample

Expand Down

0 comments on commit 3d55b88

Please sign in to comment.