Skip to main content

Python bindings for the SWGO Waveform Library

Project description

Python Bindings for the SWGO Waveform Library

This are the Python bindings for the SWGO Waveform Library. The bindings can be installed from PyPI:

pip install swgo-wave

If your operating system is not supported, you can install them manually:

git clone --recursive git@gitlab.com:swgo-collaboration/simulation/swgo-waveform-python-bindings.git
cd swgo-waveform-python-bindings
python -m pip install .

To simulate the FlashCam electronics, use:

import libwaveform as wf

fc = wf.make_flashcam()
triggers = fc.simulate([...],1)

for t in triggers:
    # t.channel - int
    # t.trigger_time_s - int (seconds since run start)
    # t.trigger_time_ticks - int (ticks since last full second, tick = 4ns)
    # t.baseline - float (ADC baseline)
    # t.intsum - float (sum of waveform)
    # t.waveform - list* of int

make_flashcam() creates a FlashCam object with the FlashCam default settings. You can directly create FlashCam instances by invoking its constructor wf.FlashCam(). Use help(wf.FlashCam) for the documentation of the constructor parameters.

The trigger and waveform objects are native C++ objects. The waveform objects support the python list interface for integers.

The MultiPMT electronics (which is not fully supported yet) can be simulated with:

import libwaveform as wf

mp = wf.make_multipmt()
triggers = mp.simulate([...],1)

for t in triggers:
    # t.channel - int
    # t.time - float (trigger time in seconds)
    # t.time_over_threshold - float (in seconds)
    # t.adc_sample - float (in LSB)

make_multipmt() creates a MultiPMT object with the MultiPMT default settings. You can directly create MultiPMT instances by invoking its constructor wf.MultiPMT(). Use help(wf.MultiPMT) for the documentation of the constructor parameters.

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.

swgo_wave-0.2.4-cp314-cp314t-musllinux_1_2_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.14tmusllinux: musl 1.2+ x86-64

swgo_wave-0.2.4-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (383.2 kB view details)

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

swgo_wave-0.2.4-cp314-cp314-musllinux_1_2_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.14musllinux: musl 1.2+ x86-64

swgo_wave-0.2.4-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (379.0 kB view details)

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

swgo_wave-0.2.4-cp313-cp313-musllinux_1_2_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

swgo_wave-0.2.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (378.2 kB view details)

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

swgo_wave-0.2.4-cp312-cp312-musllinux_1_2_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

swgo_wave-0.2.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (378.3 kB view details)

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

swgo_wave-0.2.4-cp311-cp311-musllinux_1_2_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

swgo_wave-0.2.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (373.0 kB view details)

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

swgo_wave-0.2.4-cp310-cp310-musllinux_1_2_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

swgo_wave-0.2.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (371.5 kB view details)

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

swgo_wave-0.2.4-cp39-cp39-musllinux_1_2_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

swgo_wave-0.2.4-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (372.1 kB view details)

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

File details

Details for the file swgo_wave-0.2.4-cp314-cp314t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.4-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 41cf72c7cc8a0e848d050b87c8739e175a147e140e974e4e746b6f9faef2345e
MD5 fe681f2191879dcb25eae70b81a0d54f
BLAKE2b-256 869f4adfaac12f1f310f399fca902c5063c90fcb5b8c4a866ead7bb0902b52b3

See more details on using hashes here.

File details

Details for the file swgo_wave-0.2.4-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.4-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 999f3850e69ccccd4797176e7a6c4f003826f1c8bbe983b4a8064478381d5d8a
MD5 545c43845525d4670db0f8cf58e069d4
BLAKE2b-256 14c35312ca7e45afc9e119edabb9e182181ca82337ccc53c7607092392b8a5af

See more details on using hashes here.

File details

Details for the file swgo_wave-0.2.4-cp314-cp314-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.4-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b18be1a9d69e8da8e530937eef0619e7203dd5688af475d9a3a4994196666213
MD5 5e5b46f04d7258aba2f8944f1613031b
BLAKE2b-256 7b27bff8140e31952ad07de221968d4419990968d61fb5106785f3b7c7c63632

See more details on using hashes here.

File details

Details for the file swgo_wave-0.2.4-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.4-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c45afc75b7c3aec8ee4e2d71f96101e1ccdc86a94f7dc5a9d1f002ef3ed13173
MD5 906ec4d185dde5ab792ecc842e616af5
BLAKE2b-256 50df819f021a3e2bbd6272024b53ec83c02c9c1f7ca3c0683b4bf38ab9ad5236

See more details on using hashes here.

File details

Details for the file swgo_wave-0.2.4-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.4-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f00950ae7972c3421cef890c089c0143ca25f2efebd0c1bb109736ff74079d62
MD5 b90f7bd8fb1669bdf88d9cbae27954dd
BLAKE2b-256 6e76b8dbe56758c310872742d1336f3558340bda247d29540e52636a20eaae26

See more details on using hashes here.

File details

Details for the file swgo_wave-0.2.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d55e5d5f334ae89a783a768edaa12622e0674000cdbfa6b7f2ca0099394d2337
MD5 5b5de709bc082f3607792df1fecb9c30
BLAKE2b-256 1441ff621ced70ad3d56840fd062cc079479033104c74d3241e2d416c07df32b

See more details on using hashes here.

File details

Details for the file swgo_wave-0.2.4-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.4-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 017b05b82219190a73f3766f4275842cc5f42813079e7d9607cc57af8a191700
MD5 0e56e86ef5adbab81704db7e8ec267af
BLAKE2b-256 d079504eaf8b150c83a51759a30e7b59e854e555c354aeed769165c760304f4f

See more details on using hashes here.

File details

Details for the file swgo_wave-0.2.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b098e3aa6c8b0b1826b9beca6eb7d1925e5ec5fafc924464acca9e051a286377
MD5 ea5480a39ea4f852d4f44572d236ae85
BLAKE2b-256 8e8b4c8ee96d2807ca9c3958dc27cd8ec082bbdb61ea8f22fd192d4e78056d55

See more details on using hashes here.

File details

Details for the file swgo_wave-0.2.4-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.4-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d69fca6dfdc125e7107a3081fb8220f13b49332ac4aead1d9e7ce575cf08493f
MD5 68d2af1c388b4f272a03a35f90ee740b
BLAKE2b-256 5b39ea9910eabf8a8628f99befed733ffb7aa793cd03718aec638a288e7609d4

See more details on using hashes here.

File details

Details for the file swgo_wave-0.2.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 66bad58e73d0a6ad5a2e8e6d59ed70f8f631c8dada36bfdc2053bdb4d8b08f4b
MD5 b684387b289602e65d1c026cf4ad6bb3
BLAKE2b-256 6a6ada910111f37509e669990c92541ba4438d941071677c6d2de5111f998b8d

See more details on using hashes here.

File details

Details for the file swgo_wave-0.2.4-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.4-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 08022e2469923e4b35670e7bba2aae165c63e9932db3cef3bcf3de54175d4a7f
MD5 2d2a09d4f169f336f6e1909203656519
BLAKE2b-256 6d1c61e21e0bf030f45fdf30e80da2ac4df31d054755ce0237a412fdad596de1

See more details on using hashes here.

File details

Details for the file swgo_wave-0.2.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0b62b3ae9a8ad0442e5e66c5b5bff36cf7485c7d05099135632ed3c8f15b6920
MD5 05148f516125204989ee4cb6653eef79
BLAKE2b-256 62e72fd7a5e846ac66e566e200b50d97eebd67023d5206f8c1ffe309000ecf8c

See more details on using hashes here.

File details

Details for the file swgo_wave-0.2.4-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.4-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0e72f1b6df58cd444954335f85378c176340ecbcaee2e2b137e4fba8bb908074
MD5 8b89dd16ade0ddaa0dc6c5d367ac35fb
BLAKE2b-256 89c41f3d0840fe9503d7d7e42cdddcbdb3b46e05ab3d4575e17962adfadf687e

See more details on using hashes here.

File details

Details for the file swgo_wave-0.2.4-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.4-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 577d3537dc2f624edabd523417457b58da0f16177cd8125ce59d3af6d1c93819
MD5 7bf5d3c98c2ec3b694a58085b8a56865
BLAKE2b-256 e79b0821513bae29c926de5b4aadca552fcb85e79fe900e60c07c53727c8dfcf

See more details on using hashes here.

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