Jashcraf / poke

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

zernike decomposition breaks in presence of nan values #106

Open Jashcraf opened 6 months ago

Jashcraf commented 6 months ago

fix is easy, just need to add

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

for each element of jones matrix