facebookresearch/fmmax

Better type checking in `eigensolve_isotropic_media`

Open

#53 建立於 2023年10月31日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Jupyter Notebook (15 fork)auto 404
enhancementgood first issue

倉庫指標

Star
 (149 star)
PR 合併指標
 (PR 指標待抓取)

描述

Currently, if the wavelength parameter within eigensolve_isotropic_media is passed as a float, rather than a jax array, then it throws an obscure error (not directly pointing to the wavelength parameter itself).

It would be good to either

  • explicitly allow for float values and do the necessary conversions under the hood.
  • assert a type up front and throw an error describing why this needs to be the case.

貢獻者指南