facebookresearch/fmmax

Better type checking in `eigensolve_isotropic_media`

Ouverte

#53 ouverte le 31 oct. 2023

 (0 commentaire) (0 réaction) (0 personne assignée)Jupyter Notebook (15 forks)auto 404
enhancementgood first issue

Métriques du dépôt

Stars
 (149 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur