referenceSDE

Reconstruct a reference case’s SDE from the coefficient spec carried in its JSON.

The Julia generator (juliaReference/generate_reference.jl) serializes each toy SDE as a drift + diffusion coefficient spec rather than leaving the drift/diffusion to be re-typed in Python. This module is the Python-side evaluator of that spec: given a case dict it returns the drift f(t, x) and the list of per-source diffusion columns g_k(t, x) that the Basilisk test feeds to the integrator. The SDE is thus defined once (in the generator) and interpreted identically on both sides.

referenceSDE.makeDiffusionColumns(case: dict) List[Callable][source]

Return the list of per-source diffusion columns g_k(t, x) from the diffusion spec. Column k is a length-n vector; for diagonal noise only its k-th entry is nonzero (which is how the Basilisk test wires source k to state k).

referenceSDE.makeDrift(case: dict) Callable[source]

Return the drift f(t, x) reconstructed from the case’s drift spec.