NumPy/SciPy#

See Units, shapes and model contracts for units, shapes, domains and backend boundaries, and Quickstart for executable minimal examples.

AnisotropyModel([show_init, submodels])

Subclassing interface for spherical anisotropy.

BaesAnisotropyModel([show_init, submodels])

Baes--van Hese spherical anisotropy with numerical LOS quadrature.

C_J

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

ConstantAnisotropyModel([show_init, submodels])

Constant spherical anisotropy beta(r)=beta_ani.

DMModel(*args, **kwargs)

Base class for NumPy/SciPy dark-matter density profiles.

DSphModel([show_init, submodels])

Composite spherical Jeans model for dwarf spheroidal systems.

DotDict

Dictionary with attribute access to existing keys.

ProjectedExponentialModel([show_init, submodels])

Stellar model with an exponential projected surface density.

FittableModel([args_load_data, kwargs_load_data])

Subclassing interface for stateful likelihoods and prior terms.

FlatPriorModel(config[, show_init, submodels])

Finite uniform bounds in explicitly named sampling coordinates.

GMsun_m3s2

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

Model([show_init, submodels])

Base class for stateful NumPy/SciPy model components.

NFWModel(*args, **kwargs)

Spherical NFW halo with a hard density cutoff at r_t_pc.

OsipkovMerrittModel([show_init, submodels])

Osipkov--Merritt spherical anisotropy with an analytic kernel.

Parameters([data])

Lightweight mapping used for stateful model parameters.

PhotometryPriorModel(loc, scale[, ...])

Gaussian prior for log10(re_pc).

PlummerModel([show_init, submodels])

Unit-integral Plummer tracer; re_pc is its projected half-light radius.

SersicModel(*args[, deprojection_method])

Projected Sérsic stellar model with selectable 3-D deprojection.

SphericalDSphEstimationModel(*args[, ...])

Spherical Jeans inference with a Gaussian LOS-velocity likelihood.

StellarModel([show_init, submodels])

Base class for projected/deprojected stellar-density models.

Uniform2dModel([show_init, submodels])

Unit-integral uniform projected disk with radius Rmax_pc in pc.

ZhaoModel(*args, **kwargs)

General Zhao profile.

plummer_nfw_constant_anisotropy_model(data, ...)

Compose Plummer + NFW + constant anisotropy with explicit finite priors.

AxisymmetricDSphModel([n_force, n_vertical, ...])

Compose a NumPy tracer, halo and anisotropy into an axisymmetric model.

AxisymmetricDSphEstimationModel(data, prior, *)

Unbinned Gaussian LOS inference with the emcee sampler interface.

AxisymmetricKinematicData(x_pc, y_pc, ...)

Finite matching 1-D observations, in pc and km/s, copied on construction.

AxisymmetricPlummerModel(re_pc[, q])

Unit-integral spheroidal Plummer tracer (re_pc is equatorial scale).

AxisymmetricZhaoModel(rs_pc, rhos_Msunpc3[, ...])

rho=rhos_Msunpc3 (m/rs_pc)^(-gamma) [1+(m/rs_pc)^alpha]^((gamma-beta)/alpha).

AxisymmetricConstantAnisotropyModel([beta_z])

Constant cylindrical anisotropy with finite beta_z < 1.

AxisymmetricStellarModel()

Interface for a normalized axisymmetric stellar tracer.

AxisymmetricDMModel()

Interface for a spheroidal dark-matter density and gravitational field.

AxisymmetricAnisotropyModel()

Interface for meridional anisotropy, beta_z = 1 - <vz²>/<vR²>.