Skip to main content

specsimile

Neural network emulator for spectral models in physics.

About

This package approximates the spectrum of a parametric physics simulator. The approximation can be a neural network, or, through a intermediate parametric approximate function.

Example: The true physics model is a black body with an area A and temperature T (two parameters). Between 400nm and 500nm, we approximate this model with a power law (normalisation N at 450nm, index p) with two parameters. specsimile learns the best mapping (A,T)->(N,p) to accurately reproduce the spectrum.

The trained emulator is reusable and has infinite resolution.

You can help by testing specsimile and reporting issues. Code contributions are welcome. See the Contributing page.

https://img.shields.io/pypi/v/specsimile.svg https://github.com/JohannesBuchner/specsimile/actions/workflows/tests.yml/badge.svg https://coveralls.io/repos/github/JohannesBuchner/specsimile/badge.svg?branch=master Documentation Status

Usage

Read the full documentation at:

https://johannesbuchner.github.io/specsimile/

Licence

GPLv3 (see LICENCE file). If you require another license, please contact me.

Icon made by Vecteezy from Flaticon .

Release Notes

0.0.1 (2026-03-02)

  • First version

Download files

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

Source Distribution

specsimile-0.0.3.tar.gz (195.3 kB view details)

Uploaded Source

File details

Details for the file specsimile-0.0.3.tar.gz.

File metadata

  • Download URL: specsimile-0.0.3.tar.gz
  • Upload date:
  • Size: 195.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for specsimile-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f888794754d823fc1a26f3d2f3dcd78015ade58bd1f43cc2c0a0b1ca9fb2d7e6
MD5 9538a8f82636a44db3eb6b65afa678aa
BLAKE2b-256 0c67431b6c122511f57807a79175c319c504377a5453ce055dad6f9aa58be2ae

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 file

0.0.2

1 file

0.0.1

1 file

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