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

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

swgo_wave-0.2.7-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.7-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (387.1 kB view details)

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

swgo_wave-0.2.7-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.7-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (386.3 kB view details)

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

swgo_wave-0.2.7-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.7-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (386.1 kB view details)

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

swgo_wave-0.2.7-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.7-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (381.1 kB view details)

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

swgo_wave-0.2.7-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.7-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (380.0 kB view details)

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

swgo_wave-0.2.7-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.7-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (380.4 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.7-cp314-cp314t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.7-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4c23cd86cba4538d65038cca0d7006f5f8281fbe62072a1f2a18d2a335b76d8d
MD5 4338cc8708e84147bc6a723c2ac0d687
BLAKE2b-256 09b64f5cedf67025e1abb1b253cd9ec8bde6097f448856734eb99ee636abf112

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.7-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f234477599845c4f9ac10491e344e5d38ba3b3d5a4eb1980fce873aed11fabb8
MD5 5e87f0d7f388ee26529852fca1e03f23
BLAKE2b-256 457e6675281af775a968690f3858191b8f8f36289164ecc1d8cd0ae5d22de522

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.7-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 041eb8308db47725ba96c90ac949238508a0c40adadd027f88fccbdfe4b80fb6
MD5 7333e9b20a1970738a1ffc00d2032acf
BLAKE2b-256 3e533fd32b47c0a50d32dbce77c51899992d10e838aa0084efdc442773b1928f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.7-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c5a9ff07637377896edabb192987322cff87ff7e3ac5566248e484be6bb13160
MD5 c7651b665e60be85ba7175da4bdd82dc
BLAKE2b-256 8d14d1f7b56cddea876c63c2a59b0acd5a86cfc81da5d884f44f23af4a41aed2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.7-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 edbe7f17f993f12bfb5da9fee890369118b6d7fd57e7c67b41123eaf5bc6a73d
MD5 ae4a4abd9cc334b98e9193763359f49d
BLAKE2b-256 e6c1946fad42754891fb101e2b3c21c3b70cb961991ac4746cbbf4e898ed02fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.7-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 96f0b6b7e042a58b5668c03e9f3b9048491f708efc5fffb4d8e97b474fd3b877
MD5 dced2bb2bfbc912309f4cc82b2dac581
BLAKE2b-256 675d44be3e6ae69bfe7e5c1712cde11b70cbe7efe90b33081286d53c96f985d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.7-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 babfa741d0c44a4974968a2fb9777989e3c0818ea446ee2a0219712bc70fce5d
MD5 6069da6f1ced15b7ac4178262cddc26b
BLAKE2b-256 5a8cbcef0fc2fafdbc1af47f1fb4630a03dcffe9cef8e248eb83109525850f6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.7-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e09aeef1dcd9e46f5460a3fd838fe07bd6eba83d76d4a08cfdd2ed62426c38bd
MD5 517379c74fbd2dac11c67851b5e45fee
BLAKE2b-256 35de86d3f30a52b2d610d1e4b9d5a78043fbe0fec53778ade61140fc2af1ed64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.7-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f88d187e0292fc79c042a3dae29ae3ee883a571f79e9167c9116aa824ebaec5a
MD5 58b888c4c66cfb496070b2c6d034098b
BLAKE2b-256 764c512f36b7c582799e65134f73e9eb88ca17d8a7bbf5408f1dd9ac635288c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.7-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e8edc5d9a4203a07b75f5b75512a4a3b8ed1b973ee0fa9850cd25dd6679d191b
MD5 4139fa946b5c32aabea8b5dce0a793c2
BLAKE2b-256 cc7dc0376ee7c1602e1fa664ca4864fbfd47552bfefbf75fe6c44cf5fb344687

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.7-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e04bd8772fe9b4249c2d96cfb594f4d46889406992fde5a41b6170d44f556270
MD5 fa39e019b4e6cad4588f3417451bfc83
BLAKE2b-256 20be79a049232508afbc82fbbb74892aa556e357bbc8af99be6afda0445f455c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.7-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b0dc67daba0318654d2437bd2f3254286dbfd85728829e0e3508ccb99a9ddd61
MD5 6c82da7b708689a4d9e5cb7ba983323d
BLAKE2b-256 024354923edbf678175c1b3c57fe2f54162d1daf767b4a28da7f37683b84d434

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.7-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0a42a1969a706228d0d0ff2e554c11740463c8cae4b091a36c144810cb994663
MD5 b26599f2b6c1d074ef87ca1a19610c2c
BLAKE2b-256 e205759541de075f35b29d074a694eac7d74004bfd65aeebee01690f2ef21688

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.7-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5918e718bb16bc55290e778b04b59c502f691fee2e4a154b8e403da27951f664
MD5 279a8de0ef070919b293cfeacf658c9a
BLAKE2b-256 7b06283c9508e8089958274228cc9723c796c81c87051a90a2cabad1a33001a9

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