facebookresearch/fmmax

Better type checking in `eigensolve_isotropic_media`

オープン

#53 opened on 2023/10/31

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Jupyter Notebook (15 件のフォーク)auto 404
enhancementgood first issue

Repository metrics

Stars
 (149 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド