Skip to main content

C++ implementation for high-performance fitting and numerical optimization in NASAP.

Project description

nasap-fit

A high-performance Python library for fitting reaction rate constants in chemical kinetics analysis (NASAP), powered by a C++ backend using SUNDIALS and SuiteSparse.

Installation

pip install nasap-fit

Requires Python 3.12+ on Linux or macOS.

Quick Start

from nasap_fit import NasapFit

engine = NasapFit.from_yaml("config.yaml")

# Global search with Differential Evolution
population = engine.run_de(
    pop_size=128,
    terminationCondition={"timeLimit": 60.0},
    seed=1,
)
best = min(population, key=lambda r: r.error)

# Local refinement with Levenberg-Marquardt
refined = engine.run_lm(
    best.constants,
    terminationCondition={"maxIter": 300, "xtol": 1e-8},
)

# Simulate concentration and reaction progress
result = engine.simulate(
    t=[1.0, 10.0, 100.0],
    constant=refined.constants,
    reaction_ids=[0, 1],
)

License

MIT © Hiraoka Group

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

nasap_fit-0.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (765.7 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

nasap_fit-0.2.0-cp314-cp314-macosx_11_0_arm64.whl (478.4 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

nasap_fit-0.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (765.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

nasap_fit-0.2.0-cp313-cp313-macosx_11_0_arm64.whl (478.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

nasap_fit-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (765.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

nasap_fit-0.2.0-cp312-cp312-macosx_11_0_arm64.whl (478.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file nasap_fit-0.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nasap_fit-0.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 74db17b63c9106d5dd95d1384fe0eb00cfe2f2fef8579923f06b6c37f5df8340
MD5 7410f8fac76947afba1ae31ed60ab8b1
BLAKE2b-256 cfdc5fef800f7d16f6d17195ffa8b4966d3ceceb09dcdcb7e4d1407a239ad241

See more details on using hashes here.

Provenance

The following attestation bundles were made for nasap_fit-0.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheelBuilder.yml on Hiraoka-Group/nasap-fit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nasap_fit-0.2.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for nasap_fit-0.2.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aecd32b2932c566a374ec6b95ef662c621ff37854de8e43e9ed432a64b676a47
MD5 bae44e5a7b394367166d5f897a361da3
BLAKE2b-256 a72674ef2c3137ffd7a0993b0ad04f45e7811781a0b9c40416e8994ace9b1a8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for nasap_fit-0.2.0-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: wheelBuilder.yml on Hiraoka-Group/nasap-fit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nasap_fit-0.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nasap_fit-0.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ebab6a26f3d3706f36b6cee2dee6b5e577abf3e08ed8b82d6b3ef7035075d953
MD5 7b197ac12162a637a47b4ce546f2745b
BLAKE2b-256 86aa4ccac121ef2178c63450c2e9723562f1646db23fff0ff298e91910096a70

See more details on using hashes here.

Provenance

The following attestation bundles were made for nasap_fit-0.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheelBuilder.yml on Hiraoka-Group/nasap-fit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nasap_fit-0.2.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for nasap_fit-0.2.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b99816ac78a4ee0121498d4aec72b9fccc4fba4ad481dbe152bd433f3f71c0b
MD5 d3d4c5e3592a6da3337caa08357f47c8
BLAKE2b-256 5fabe8eacad369554d3f33c4b8dbadee7fd786894d2f51882561f7ab8536fc18

See more details on using hashes here.

Provenance

The following attestation bundles were made for nasap_fit-0.2.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: wheelBuilder.yml on Hiraoka-Group/nasap-fit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nasap_fit-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nasap_fit-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d9da25cdbef4ad5f27171dfc5e720a627ebe8606ee8875103be7103de4cdabad
MD5 ddbc2514e6e9376e8f5ad0b1e4c18fb6
BLAKE2b-256 437b89854016934583110e90b39bac6e3c5631046c6250b655cd32c976eab3b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for nasap_fit-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheelBuilder.yml on Hiraoka-Group/nasap-fit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nasap_fit-0.2.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for nasap_fit-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc07158274eb00df7dfa61354145c92b85d5095734312f5d0a43aa2a24ba8701
MD5 e7ca39b74a7aea0ed325508534f7b30e
BLAKE2b-256 08edb76f85464fe22d68b51f40770f7c561c2bd05363c2dcb0d89c84889b602a

See more details on using hashes here.

Provenance

The following attestation bundles were made for nasap_fit-0.2.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: wheelBuilder.yml on Hiraoka-Group/nasap-fit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page