You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace jnp.interp with interpax.interp1d in thermo.py
Follow-up to PR #16 which replaced jnp.interp with interpax in abundances.py.
This change applies the same improvement to thermo.py for consistency and
better performance.
Changes:
- Import interpax module
- Flip QED correction tables at load time (instead of at each call) for
monotonically increasing x coordinates required by interpax
- Replace 6 jnp.interp calls with interpax.interp1d:
- rho_EM_std: 2 calls for QED corrections
- p_EM_std: 1 call for QED correction
- rho_plus_p_EM_std: 1 call for QED correction
- G_nue_with_me: 1 call for collision factor interpolation
- G_numt_with_me: 1 call for collision factor interpolation
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments