facebookresearch/fmmax
Better type checking in `eigensolve_isotropic_media`
Aperta
#53 aperta il 31 ott 2023
enhancementgood first issue
Metriche repository
- Star
- (149 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
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
floatvalues 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.