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.1.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (763.0 kB view details)

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

nasap_fit-0.1.3-cp314-cp314-macosx_11_0_arm64.whl (475.7 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

nasap_fit-0.1.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (762.7 kB view details)

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

nasap_fit-0.1.3-cp313-cp313-macosx_11_0_arm64.whl (475.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

nasap_fit-0.1.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (762.6 kB view details)

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

nasap_fit-0.1.3-cp312-cp312-macosx_11_0_arm64.whl (475.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for nasap_fit-0.1.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0d4574f324d18e64abaeab092bced9c8fdca9374ad648c8ad2b04a3ecde21718
MD5 de3da8494d46410e6ca9bdaf99330632
BLAKE2b-256 f13f9a7291aab2d518bfd2c3c04a61d00193bf5fc1484b661c7ffdaa6b759b06

See more details on using hashes here.

Provenance

The following attestation bundles were made for nasap_fit-0.1.3-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.1.3-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for nasap_fit-0.1.3-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5831476f4c21af62c80beed2f23e2337650880fbfe4987027e1f23e0ea9001a6
MD5 42ce863e38a95a618b461646c9320eb5
BLAKE2b-256 8173cf41c372cf8213836146b216314af7a11c4582e25867be7101e6c6f068a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for nasap_fit-0.1.3-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.1.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nasap_fit-0.1.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 43c0665a4c8c2dbc400b4fe518ca20db3c7df7031c0aca1a1551329b4b423f0f
MD5 07f45faadc306cacac0c5f1e5cfacc1e
BLAKE2b-256 fd7953a36b4b5a6a3afacb79d304c23380a0bb08d08271550274f3911cd6393f

See more details on using hashes here.

Provenance

The following attestation bundles were made for nasap_fit-0.1.3-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.1.3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for nasap_fit-0.1.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4c9fc7189c159f6c307efca492cd6c14461fa754fe9cfb2449113c0abc69cfa
MD5 c4028f7448c7798f23369f6018edb103
BLAKE2b-256 1b54f013aadaf4e83f42e3e1f10bbf23a145d17700a8c5e094599320a59f9274

See more details on using hashes here.

Provenance

The following attestation bundles were made for nasap_fit-0.1.3-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.1.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nasap_fit-0.1.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 900e43a8ad1d60cfb12969fd87f6c6eb0ebc6414a87766ef5202d6abfe265226
MD5 7194a9e83ec363eaf18ca187ce7d2db5
BLAKE2b-256 7ced27e143e8560679e96dd95dd64f58d7ce309c9d0d2d699b7cb6b960932581

See more details on using hashes here.

Provenance

The following attestation bundles were made for nasap_fit-0.1.3-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.1.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for nasap_fit-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbdaed8f0240defe86a7c58f31d015f10e2374cf3761bd0b1a28b9d8b048dc31
MD5 546002ddbb5fe1d3b1a046c28ef1e621
BLAKE2b-256 02a8c66665e033af4db3c8870c0010a90a6eee2a9efc9ade73f84cce57056a97

See more details on using hashes here.

Provenance

The following attestation bundles were made for nasap_fit-0.1.3-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