Jashcraf / poke

Poke (pronounced poh-keh) is a Polarization Ray Tracing and Gaussian Beamlet module for Python
BSD 3-Clause "New" or "Revised" License
32 stars 6 forks source link

zernike decomposition breaks in presence of nan values #106

Open Jashcraf opened 2 months ago

Jashcraf commented 2 months ago

fix is easy, just need to add

mask = np.isfinite(data)
data = data[mask]

for each element of jones matrix