Core utilities#

NumPy/SciPy#

jeanspy.model.C_J

Convert a numerical J factor from Msun^2/pc^5 to GeV^2/cm^5.

jeanspy.model.DotDict

Dictionary with attribute access to existing keys.

jeanspy.model.GMsun_m3s2

Solar gravitational parameter G*Msun, in m^3/s^2.

jeanspy.model.Model([show_init, submodels])

Base class for stateful NumPy/SciPy model components.

jeanspy.model.Parameters([data])

Lightweight mapping used for stateful model parameters.

JAX#

jeanspy.model_jax.Model([submodels])

Functional JAX model container with explicit physical-parameter mappings.

jeanspy.model_jax.configure_runtime(*[, ...])

Update global runtime knobs used by model_jax.

jeanspy.model_jax.get_runtime_config()

Return the current model_jax runtime configuration.

Finite-cone NumPy J and D factors#

jeanspy.axisymmetric_factors.C_J

Convert a numerical J factor from Msun^2/pc^5 to GeV^2/cm^5.

jeanspy.axisymmetric_factors.C_D

Convert a numerical D factor from Msun/pc^2 to GeV/cm^2.

JAX hypergeometric numerical helpers#

jeanspy.hyp2f1_jax.hyp2f1_1b_d_series(b, d, ...)

Fixed-term series for 2F1(1, b; d; w) with w in [0,1).

jeanspy.hyp2f1_jax.hyp2f1_1b_3half_series(b, w, *)

Series approximation for 2F1(1, b; 3/2; w), w in [0,1).

jeanspy.hyp2f1_jax.hyp2f1_1b_3half_quad(b, w, *)

Numerically stable evaluation of 2F1(1, b; 3/2; w) for w in [0, 1).

jeanspy.hyp2f1_jax.hyp2f1_1b_3half_asymptotic(b, w, *)

Asymptotic evaluation of 2F1(1,b;3/2;w) for w close to 1.

jeanspy.hyp2f1_jax.hyp2f1_1b_3half(b, w, *)

2F1(1,b;3/2;w) specialized helper.

Double-exponential integration helpers#

jeanspy.dequad.dequad(func, a, b, n[, axis, ...])

Integrate a vectorized function with fixed double-exponential nodes.

jeanspy.dequad.generate_x_w(a, b, n[, xp])

Construct nodes and weights for fixed double-exponential quadrature.