Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pelicunDLML

pelicun (Probabilistic Estimation of Losses, Injuries, and Community resilience Under Natural hazard events) and the SimCenter Damage and Loss Model Library (DLML) merged into one installable package that runs on current NumPy / SciPy / Python.

Status: release candidate (0.1.0rc1). Not declared stable yet -- see "Known limitations" and CHANGELOG.md.

Distribution (pip) pelicunDLML
Import name pelicundlml
pelicun upstream commit 6708a3b (v3.10 + 11), see UPSTREAM.json
DLML upstream v3.2, commit 869423b
Python 3.10 - 3.14 (tested)
SciPy 1.15.3, 1.17.1, 1.18.1 (tested); no upper cap
License BSD 3-Clause (upstream notices kept in LICENSES/)

Why

Upstream pelicun computes multivariate normal box probabilities with the private Fortran routine scipy.stats._mvn.mvndst, which SciPy removed in 1.16. pelicunDLML replaces it with pelicundlml.compat.mvn, a pure NumPy/SciPy implementation of the same Genz algorithm with the same signature and return values, validated against the original Fortran routine and against independent references (see docs/validation.md). Everything else is upstream code, changed only by the mechanical rename described in PORTING.md.

Install

pip install pelicunDLML            # from PyPI once published
pip install pelicunDLML-0.1.0rc1-py3-none-any.whl   # from a release file

Optional:

pip install "pelicunDLML[test]"    # pytest stack to run the test suites
pip install pelicundlml-legacy-pelicun pelicundlml-legacy-dlml
                                   # old import names `pelicun` and `dlml`

Do not install the legacy name packages next to the original pelicun or simcenter-dlml; they use the same import names.

Use

import pelicundlml
from pelicundlml.assessment import Assessment, DLCalculationAssessment
from pelicundlml import uq, base, file_io
from pelicundlml.dlml import api as dlml          # DLML model data

print(pelicundlml.__version__, pelicundlml.PELICUN_UPSTREAM, pelicundlml.DLML_UPSTREAM)

import pelicundlml.compat
print(pelicundlml.compat.versions())             # versions + MVN backend, for bug reports

Command line (same options as upstream pelicun and dlml):

pelicundlml --help                  # == python -m pelicundlml
pelicundlml-dlml --help

Existing scripts written for upstream pelicun only need import pelicun -> import pelicundlml (or install the legacy name package).

Tests

pip install -e ".[test]"
python -m pytest pelicundlml/tests tests -n auto
  • pelicundlml/tests -- upstream pelicun suite (381 tests)
  • tests/dlml -- upstream DLML suite (422 tests)
  • tests/numerical -- reference values from the original Fortran MVNDST and the original censored fit, plus the independent MVN validation (214 tests)

PELICUNDLML_MVN_BACKEND=legacy (SciPy < 1.16 only) switches back to the Fortran routine for regression comparison.

Known limitations

  • Python 3.15: pandas 2.3.3 and numexpr 2.14.2 have no cp315 wheels yet. Built from source the full suite passes (1019 passed, 1 skipped), but 3.15 is not declared supported until those wheels exist -- see docs/python315.md.
  • With the legacy name shim, the unmodified upstream suite passes 380/381; the one difference is by design (the install folder is pelicundlml, not pelicun).
  • compat.mvn is 2-10x slower per call than the old Fortran routine for small dimensions (fixed budget, see docs/validation.md).
  • compat.mvn.mvndst uses a fixed point budget (20 000, the Fortran default was 2 000) so the censored-fit objective is smooth; results are reproducible bit-for-bit, whereas the Fortran routine was not.
  • The two upstream issues found during porting (input mutated in place by uq.fit_distribution_to_sample; non-PSD matrix in _mvn_scale at large point budgets) are kept as upstream behaviour and listed in CHANGELOG.md.

Credits

All engineering content is the work of the pelicun and DLML authors at Stanford University and the NHERI SimCenter (University of California). Please cite pelicun and DLML as their authors request. pelicunDLML is an independent repackaging and is not endorsed by them.

Metadata

Release files for pelicunDLML 0.1.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pelicunDLML 0.1.0rc1
File Size Uploaded Provenance Actions
pelicundlml-0.1.0rc1.tar.gz 13.2 MB With provenance Details for pelicundlml-0.1.0rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pelicunDLML 0.1.0rc1
File Interpreter ABI Platform Actions
pelicundlml-0.1.0rc1-py3-none-any.whl Python 3 none any Details for pelicundlml-0.1.0rc1-py3-none-any.whl

Total release size: 26.7 MB

Release files / pelicundlml-0.1.0rc1.tar.gz

Download URL pelicundlml-0.1.0rc1.tar.gz
Size 13.2 MB
Tags Source
SHA-256 checksum
How to use checksums
2b69dbaa2ef610c709f093cd126a22e76236d68b8e571d3a5cb013143917efde
BLAKE2b-256 checksum
How to use checksums
bb6ac4b5690e3e1b713c45fbe849d039e795255836ec4e8805ebf455a10bd456
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 Dec 1, 2026.

Transparency log

Release files / pelicundlml-0.1.0rc1-py3-none-any.whl

Download URL pelicundlml-0.1.0rc1-py3-none-any.whl
Size 13.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a7da8ebc39c91cb71e776c5841f4d77fbec9d07e76d4289b91c7c9a31b238b40
BLAKE2b-256 checksum
How to use checksums
6fa6b079719b68059965dddf23dd219254a9fa5fe4d5f02452b7756e9693e33d
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 Dec 1, 2026.

Transparency log

Security for pelicunDLML 0.1.0rc1

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.

Select from 2 files

Attestation for pelicundlml-0.1.0rc1.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 Dec 1, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page