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.5-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.5-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (383.3 kB view details)

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

swgo_wave-0.2.5-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.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (379.1 kB view details)

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

swgo_wave-0.2.5-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.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (378.3 kB view details)

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

swgo_wave-0.2.5-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.5-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.5-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.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (373.1 kB view details)

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

swgo_wave-0.2.5-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.5-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (371.6 kB view details)

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

swgo_wave-0.2.5-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.5-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.5-cp314-cp314t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.5-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b38ddd986f3ac0c5c80575f325d0b07c2f60202ac5b63ce2ffc7af049c05082b
MD5 ae86578442d12e21125076638c08d63b
BLAKE2b-256 3804f9d44d6b5aaf89f25a525f5a284485e9f817ca5740cad1f30820426fa1df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.5-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 20041b0a0adc21f32788c30188ce810406c3f8dba72cd0cef8220c1317beb8cd
MD5 4d661787cbc882a3a53e80b8a58a3999
BLAKE2b-256 1144f71ca798dd38bd5e6b9b508fe2f5b2c925e91464e61fea19a2674e916658

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.5-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e062ecda7bc5dbda14c2f98e8cc1a59cabc542ddf3215d9895362aee352a2bc2
MD5 488038ba2ce2d79e6da44c1377c51eca
BLAKE2b-256 8887e0c1b87d6007041d48a626970b2ce2d7c84d04e9bd0eb493964ebf76891f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2eb9d7b268aa36a4f8763a85aefad18ea167f361787f47157ecb73ebc7763f66
MD5 ffe6956fc7c6dc2fa28184d6450a1e1a
BLAKE2b-256 2821999f746554774c0a895d1c8062b225b715e163f6aa10efd5184495aa7f96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.5-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a40dbdb119d22c3fa8a54952529606280b0a8c36a6df729b9edeb3da26e290c5
MD5 1e5d86d61221814e657dd1834766d1f6
BLAKE2b-256 d428b07a961015cd00b7282ca3454ffb4f14c06b332e18ac9bb93859b1a3780f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 64a79c6d099b7ac4134656d73fd3c6f209dac95948de1fa65d11bde9baa1c9df
MD5 d9fd615b7264a6a2e6d550611adddfed
BLAKE2b-256 2cbe53270b8b1f66d31d3a20462127148f5a70d91dbb886ec755f7ceb9f13f6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.5-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4b2aa62961199baea5f481e22f0c4e3ef02e3c64a4f188791a76b91d486e9940
MD5 3a389f8afbdd5eee00866d9d916c9926
BLAKE2b-256 6c3031f5f0ee2af0c355b2e491cb5560dfce802448128222d6619ea64516249d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ee57476ebb63a5d62bb916f36eeb18a67d06d14c20baf5e2b49eec375b3f561b
MD5 257dbface25786d80f0cc068b6a019e0
BLAKE2b-256 a4823dc35e2bb80616b7f48b1c2122cc2e5905845e3834cbc0fc85362eb06b3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.5-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 66e12dcbec9857e3932219d2d533e54ca50f6179a8e10d9971525e081dca09e0
MD5 8fd833931584ac7d47678ad444674bc4
BLAKE2b-256 7c216c3be2324c768b24ec0ad959237e6eaf1bcb4bb6a8553e6da379bbef6d10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 580617af5dccaf0d4846d9fc85cf9306c0ebd0155806e580cd520911e6a1d58d
MD5 91162adf0cb67438a5b95b0eaac3e247
BLAKE2b-256 2dbe9cfb21d28bf41d2064d8e9873c60cbbd9794644e3187df817d0d2b53206c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.5-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 55dc5c1a4e081756d5891aa2093094b23804b7dca6b60c4bc983bd5acfab19c0
MD5 42c06187969391df7c77632acfd08dd1
BLAKE2b-256 a5a70df759a8463fdc981e43d2f1df49986bacd248c5fa35b8401bc50930c51b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.5-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2fc9b266c22e0401ea772792058ec6da3ba0bdb8e40c62deae90a09ec0e8abf4
MD5 d861aa2e73832cd6077554271e205676
BLAKE2b-256 31d0a0d7fc097575965b49988373b769e7d3f54efaa3f1d904019ba11fdd719a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.5-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4697f1ecfe90152e5c9e65e112b1c9ff3458be537c51cf4686b3fc3bde767f02
MD5 961bd17ff75fc9465d5d285e6426ca72
BLAKE2b-256 b5ac0f2557dcfc9500d6da710744a25e27840b89ab8d7b77a117833c281eabc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.5-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d3f1c789a0bf721b534c57983b24eec722527b6ba183302319c0c80018085a2f
MD5 eca51876855868970598ac7b035c75ed
BLAKE2b-256 e6fbf34a5ff866368e76d3fc28d6bb94b12105e6b6629f0a0da7a9ca4a8fa6bc

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