Skip to main content

A Landau PDF definition to be used in Python.

Project description

pylandau

example branch parameter

A simple Landau definition to be used in Python, since no common package (Scipy, Numpy, ...) provides this. Also a fast Landau + Gauss convolution is offered, that is usefull for fitting energy losses of charged particles in matter. The Landau is approximated according to Computer Phys. Comm. 31 (1984) 97-111 and the implementation is from CERN ROOT Mathlibs.

Installation

The project is hosted at PyPI. For installation just type:

pip install pylandau

If you want to change the code or start contributing, download it and put it into a directory of your choice. From the project root folder run:

pip install -e .

Usage

import numpy as np
import pylandau

x = np.arange(0, 100, 0.01)
y_landau = pylandau.landau(x)
y_langau = pylandau.langau(x)

Project details


Download files

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

Source Distribution

pylandau-3.0.0.tar.gz (17.9 kB view details)

Uploaded Source

Built Distributions

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

pylandau-3.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (259.1 kB view details)

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

pylandau-3.0.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (258.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

pylandau-3.0.0-cp313-cp313-macosx_11_0_arm64.whl (84.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pylandau-3.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (259.0 kB view details)

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

pylandau-3.0.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (258.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

pylandau-3.0.0-cp312-cp312-macosx_11_0_arm64.whl (84.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pylandau-3.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (256.2 kB view details)

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

pylandau-3.0.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (256.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

pylandau-3.0.0-cp311-cp311-macosx_11_0_arm64.whl (84.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pylandau-3.0.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (254.0 kB view details)

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

pylandau-3.0.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (254.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

pylandau-3.0.0-cp310-cp310-macosx_11_0_arm64.whl (84.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file pylandau-3.0.0.tar.gz.

File metadata

  • Download URL: pylandau-3.0.0.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pylandau-3.0.0.tar.gz
Algorithm Hash digest
SHA256 91b0e9e3545d9396e5da8bfe64b953af91585054425b6128ec662df7dcf0f344
MD5 ae421d33967461b9aed65948f910e370
BLAKE2b-256 4507dd5c738a52b5743ca2ebb2273ff6ea9202b75ddebdfc09b9cc73c1669684

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylandau-3.0.0.tar.gz:

Publisher: wheels.yml on SiLab-Bonn/pylandau

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

File details

Details for the file pylandau-3.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pylandau-3.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f2ee7f7866499e8ec7c329845c491ebf67dedcb3bc6b2144a877453c7a360128
MD5 35a9612cbb0c8d51f3c2eaae8a1c5adb
BLAKE2b-256 8f2ae93f959d0d0fe9f283a200126423c3f2cf168f9ce8ceced41cdb3c62927c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylandau-3.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on SiLab-Bonn/pylandau

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

File details

Details for the file pylandau-3.0.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pylandau-3.0.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e53c3bae92056158ba3dc1b35ec279d3594aaa99dac6945b3926014fef689b51
MD5 85f9bd4583d9322a11875d34253f7956
BLAKE2b-256 df5a7b1217099117400164aaa10e222821b64bcea814e138777c3929473f4cd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylandau-3.0.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: wheels.yml on SiLab-Bonn/pylandau

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

File details

Details for the file pylandau-3.0.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pylandau-3.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 344d1f62b6a8621fdae1743326290a5cafcf9e70cd12a657769c5f6ba0fb9f75
MD5 6713acdd74e4302dba08ffc0b40e5008
BLAKE2b-256 32198ee4863d89d3fe9eab64dffccfd9c758201263879ed8fc3fb97ce2dc4b30

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylandau-3.0.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: wheels.yml on SiLab-Bonn/pylandau

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

File details

Details for the file pylandau-3.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pylandau-3.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4e194271ed8b895add76fb3764263debb357893e9c03caeb9f99eeb5de43abfa
MD5 c52ad2dff04c7577eaa8d4e43dbac3c7
BLAKE2b-256 1347f124d998ecd5ed514c22ec9be6cf775e250150f2d7a1de6a14be43c3a2a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylandau-3.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on SiLab-Bonn/pylandau

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

File details

Details for the file pylandau-3.0.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pylandau-3.0.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6df18e3ec93e4fb4ebd037c8764646b25402335cced2fc396c657a06e03dff9b
MD5 9a5072f24f5f82e5be78c1ada4b46e95
BLAKE2b-256 0a212d47659fc1fe2b7115a0348e59e9bc7e3eb42a16018a986f56e634a2f505

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylandau-3.0.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: wheels.yml on SiLab-Bonn/pylandau

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

File details

Details for the file pylandau-3.0.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pylandau-3.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e3ac42c7783a7b5a4a3663ccdf782cf1d21f3951bd09669d80be915b0560530
MD5 b645251db57128fedcbc0c1cee4c05bd
BLAKE2b-256 789c2cd52cc9930bd46bbcb98f6cf7accfc288ef4d9fdba014c7fbf5850c39b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylandau-3.0.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: wheels.yml on SiLab-Bonn/pylandau

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

File details

Details for the file pylandau-3.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pylandau-3.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9b5a7526d8682227aadba605160e3cf0a486cd306430e748a613978811eab561
MD5 f44f30ee5faae68f00f0de910037c723
BLAKE2b-256 80e036a93b87e13ee8357c66754be4a122b36e47aee223f96ec5fc8dda763049

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylandau-3.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on SiLab-Bonn/pylandau

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

File details

Details for the file pylandau-3.0.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pylandau-3.0.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1daf32bfbe741a3d8450f49aeec0e252bc8d10e1ab1e35c577ad398afc8e283b
MD5 81bfc22a09ce802b3080082c95058c33
BLAKE2b-256 e9d411c9ed64e3c21004800e4dceb2bba7516872da1f8b7446f404e6b26cedcb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylandau-3.0.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: wheels.yml on SiLab-Bonn/pylandau

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

File details

Details for the file pylandau-3.0.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pylandau-3.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1fbb9fe0114b6564f3255fb577f492bee0389179147220219d0787fd580e562
MD5 060621853e3121fcc8509b7c82610457
BLAKE2b-256 ab58abc340f8c2d597718e7ab61fad5cd810d92811ffb5c1656667c68284775d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylandau-3.0.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: wheels.yml on SiLab-Bonn/pylandau

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

File details

Details for the file pylandau-3.0.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pylandau-3.0.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9bbf9ff8de79680772340f4c3713c26be78ba3f2f2e8b502223b075f8b711ece
MD5 8958d2614efa2352c1f2f983b2868f75
BLAKE2b-256 093ae364c587e0ef81f267cf14a2101e0f8a381598007614e844075d0c49f92b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylandau-3.0.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on SiLab-Bonn/pylandau

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

File details

Details for the file pylandau-3.0.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pylandau-3.0.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4a34e3409da538cd5a79d094886d0e27041680ad26bc53297425af5c6e1a0b15
MD5 6ed862330a430e02ee0c34c139e8ba40
BLAKE2b-256 54993b53615a4531af4e62e88ba06eec488f3b3638aa2299f4006c64168a5593

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylandau-3.0.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: wheels.yml on SiLab-Bonn/pylandau

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

File details

Details for the file pylandau-3.0.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pylandau-3.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5950346fc389df522937da913ccae97e4b1011520dea013a86a10eae88ba2637
MD5 69574e3339a500c1db361eaf66d2175b
BLAKE2b-256 5d8bcd7154c502cea273d68cba69c618b14798759589f2a863493057e1c8501f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylandau-3.0.0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: wheels.yml on SiLab-Bonn/pylandau

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