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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nasap_fit-0.1.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: nasap_fit-0.1.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 763.0 kB
- Tags: CPython 3.14, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ae3ee052cd190c97b13dd5e84e603ae09e29b40fde3d1d0aaa9470216378e52
|
|
| MD5 |
88cbe66498ffdc3e9931ce1875e9e0a7
|
|
| BLAKE2b-256 |
1990606f339b1d245850cc003dedd3cbb3b3e42922bc26d1d0c147fedd935e60
|
Provenance
The following attestation bundles were made for nasap_fit-0.1.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
wheelBuilder.yml on Hiraoka-Group/nasap-fit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nasap_fit-0.1.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
9ae3ee052cd190c97b13dd5e84e603ae09e29b40fde3d1d0aaa9470216378e52 - Sigstore transparency entry: 1558750813
- Sigstore integration time:
-
Permalink:
Hiraoka-Group/nasap-fit@b15cbb1c911f893b946fde12f907f6cecd268997 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Hiraoka-Group
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheelBuilder.yml@b15cbb1c911f893b946fde12f907f6cecd268997 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nasap_fit-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: nasap_fit-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 762.8 kB
- Tags: CPython 3.13, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e62edc85a585ae85c96ed572eff0c0dd12eb82d8b571fcddc07cea93f777896c
|
|
| MD5 |
4bf23bb4e1e3e4cedd420e0f08af54bb
|
|
| BLAKE2b-256 |
63673b4bf9a236035cf57901f521fa673f739910d5540eeac4adb7b421055d90
|
Provenance
The following attestation bundles were made for nasap_fit-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
wheelBuilder.yml on Hiraoka-Group/nasap-fit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nasap_fit-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
e62edc85a585ae85c96ed572eff0c0dd12eb82d8b571fcddc07cea93f777896c - Sigstore transparency entry: 1558750379
- Sigstore integration time:
-
Permalink:
Hiraoka-Group/nasap-fit@b15cbb1c911f893b946fde12f907f6cecd268997 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Hiraoka-Group
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheelBuilder.yml@b15cbb1c911f893b946fde12f907f6cecd268997 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nasap_fit-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: nasap_fit-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 762.7 kB
- Tags: CPython 3.12, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38fd803b2541fae25004736a4eeb5366103241a0ef841f74500ffc35c49519a5
|
|
| MD5 |
aa36bc1d69994fea1b1e4d28ee23291d
|
|
| BLAKE2b-256 |
1a9f0bc36ad1b9b8e75af2cf6a7fb65aee821f0e41dbecaa807b8e11cc6b1cf7
|
Provenance
The following attestation bundles were made for nasap_fit-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
wheelBuilder.yml on Hiraoka-Group/nasap-fit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nasap_fit-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
38fd803b2541fae25004736a4eeb5366103241a0ef841f74500ffc35c49519a5 - Sigstore transparency entry: 1558751112
- Sigstore integration time:
-
Permalink:
Hiraoka-Group/nasap-fit@b15cbb1c911f893b946fde12f907f6cecd268997 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Hiraoka-Group
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheelBuilder.yml@b15cbb1c911f893b946fde12f907f6cecd268997 -
Trigger Event:
push
-
Statement type: