lemaitre.initial_data.conformally_flat_puncture (LMID-conformally-flat-puncture)
Certified, differentiable, parametric conformally-flat binary-black-hole initial data via spectral collocation — the code and paper.
This is the conformally_flat_puncture model of the initial_data domain of the
Lemaitre package family. It installs under the shared lemaitre namespace,
so once installed:
import lemaitre as lm
lm.initial_data.conformally_flat_puncture.solver.solver_3d # the production 3-D xCFC solver
lm.initial_data.conformally_flat_puncture.parametric # the certified/differentiable ROM layer
Its sibling lemaitre.initial_data.curved_puncture (repo LMID-curved-puncture) is the
non-conformally-flat successor, and reuses this package's ABT chart,
Newton–Krylov solver and ROM directly. Further family members
(lemaitre.inspiral, …) slot in under the same lemaitre. prefix when
installed alongside.
Install
pip install LMID-conformally-flat-puncture
python -c "import lemaitre as lm; lm.initial_data.conformally_flat_puncture" # smoke check
This installs the package with its two namespace parents, lemaitre and
LM-initial-data, and the solver stack. The trained models download themselves
from Zenodo on first use (see the
documentation).
Development install
All three distributions are on PyPI, so a bare pip install -e . here resolves
the two parents from PyPI rather than from your checkout — which is not what you
want while developing against one. Install all three from a checkout of the
family superproject, outermost first, with --no-deps so pip uses the
checked-out parents:
pip install numpy scipy jax matplotlib pytest sympy # the solver stack + test deps
# from the Lemaitre superproject root -- https://github.com/LemaitreModels/Lemaitre
# -- with LMID-conformally-flat-puncture checked out
for d in . LM-initial-data LM-initial-data/LMID-conformally-flat-puncture; do
pip install -e "$d" --config-settings editable_mode=compat --no-deps
done
python -c "import lemaitre as lm; lm.initial_data.conformally_flat_puncture" # smoke check
--no-deps and the order go together: pip must not resolve the two parents
from PyPI in place of your checkout, and each must already be installed before its
dependents — so the runtime stack is installed first, by hand. sympy is the
[dev] extra, needed by one test that fails rather than skips without it.
editable_mode=compat is not optional either — the modern editable mode makes
the two namespace levels degrade into PEP 420 portions, and lazy attribute
access then fails while a direct import still works.
Pure Python: jax, numpy, scipy, matplotlib (float64 throughout), plus the
dependency-free lemaitre / LM-initial-data namespace packages. No
machine-learning framework and no external solver code are required — the
package is self-contained (enforced by tests/test_self_containment.py).
Layout
src/lemaitre/initial_data/conformally_flat_puncture/
solver/ spatial elliptic (xCFC) solver — production 3-D stack + base layers
parametric/ parameter-space collocation, Hermite/Smolyak, POD — the ROM
applications/ parameter targeting, eccentricity control, differentiable sensitivity
validation/ TwoPunctures oracle wrapper + ADM / constraint diagnostics
pipeline/ canonical producers, runnable and importable:
run_*.py per-figure / per-table data producers
build_*.py surrogate-model builders (heavy; cluster)
tests/ acceptance suite (float64, CPU)
paper/ paper.tex + figures/ (recompute + plot scripts)
docs/ DATA.md (data regeneration + oracle)
· MODELS.md (which surrogate is shipped, and what it stores)
· conf.py + index.md: the Sphinx site (`make docs`, Read the Docs)
Only lemaitre/initial_data/conformally_flat_puncture/ is shipped by this distribution —
lemaitre/ and lemaitre/initial_data/ are namespace levels owned by the
lemaitre core and the LM-initial-data umbrella respectively, so they
carry no __init__.py here.
Reproduce the paper
make test # run the acceptance suite
make figures # (re)build any missing figure data, then plot every PDF
make tables # recompute the table data then render the LaTeX bodies
What a bare clone can and cannot do. The plot tier is fully reproducible: the
plotters read paper/figures/figdata/*.json and nothing else — no reports/, no
models, no jax — so make figures redraws all ten PDFs from committed data with
only matplotlib. make tables genuinely recomputes: Table I derives its node
counts and box edges from pipeline/production_box.py in seconds, with no solve.
The data tier is not reproducible from a clone, and the numbers are the paper's:
- each
figNN_*_data.pydistils a raw run artifact under$LM_REPORTS— it reshapes numbers a heavy-tier run already produced, rather than recomputing them from the solver.fig07additionally evaluates a shipped surrogate model (.npz) through the ROM;fig10distils an external GRTeclyn run tree. - those raw artifacts are the heavy tier: multi-GB χ surrogate corpora
(
make models, cluster), the external TwoPunctures binary (make oracle), and the GRTeclyn constraint runs. None is committed. make figdataskips any figdata that already exists, and all ten are committed — so on a clone it rebuilds nothing andmake figuresonly replots.--forcere-distils, and then needs the heavy tier.
See docs/DATA.md for the heavy runs and how to rebuild each figure's data.
License
GPL-3.0-or-later (GPLv3+) — the wording of the License :: classifier in
pyproject.toml. See LICENSE.
Metadata
Release files for LMID-conformally-flat-puncture 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lmid_conformally_flat_puncture-1.0.0.tar.gz | 605.4 kB | With provenance | Details for lmid_conformally_flat_puncture-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lmid_conformally_flat_puncture-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for lmid_conformally_flat_puncture-1.0.0-py3-none-any.whl |
Total release size: 1.1 MB
Release files / lmid_conformally_flat_puncture-1.0.0.tar.gz
| Download URL | lmid_conformally_flat_puncture-1.0.0.tar.gz |
|---|---|
| Size | 605.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a3e17b4c7022273332b6b82d32d474db89bd086fd87e5a67113a4034a924ae0
|
|
BLAKE2b-256 checksum How to use checksums |
88dbda7913f91fc87b0d2b20cf9fd5cb494e4eb781a6ab80d383f23071161f23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logRelease files / lmid_conformally_flat_puncture-1.0.0-py3-none-any.whl
| Download URL | lmid_conformally_flat_puncture-1.0.0-py3-none-any.whl |
|---|---|
| Size | 534.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ca854e6ee41e60eb874fa02950e161596db237c07d4dd437dce6822f1b4f814
|
|
BLAKE2b-256 checksum How to use checksums |
ac1f965d7a38f46ad2fd3c86e929679f1e57c4920ca2fae172f2ca2237a78b7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logSecurity for LMID-conformally-flat-puncture 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lmid_conformally_flat_puncture-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.