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.6-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.6-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.6-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.6-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.6-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.6-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.6-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.6-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (378.4 kB view details)

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

swgo_wave-0.2.6-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.6-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.6-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.6-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.6-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.6-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (372.2 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.6-cp314-cp314t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.6-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 34f917adad844d2b9319adfff76df22154f7e2de3f8b54a97803972d11aaaedc
MD5 6e1855cab105803f92c8b91cc44fb6fd
BLAKE2b-256 459d9a546dd01fdc3cd3b73afaa8101ae5b6b9155eccdd803aba742cc05695f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.6-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 72faf2b91b78115557975d80cff791b6ee8dfad3b41f46d7a45b48c9a44ff8ab
MD5 a637595a69a320ff2acc925a38a97e5e
BLAKE2b-256 0bd1f2dc39afce53e8be37c69810d7ec4e6e7234be005aaf27e8bc04dd85e076

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.6-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 12439fc1e25356dd8d81781a1e409036cecae64147128787533bc1d2ea9eaef2
MD5 c12a99a76c6329237e7492991b678be8
BLAKE2b-256 12fef800cf0f0d94ab1aab7f76583aa2440398ca81f72f6983b17367c228788c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.6-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e592b567b2e5afe1529e03f7337dd392aee24d4f15e4228d4cb00eec4a589961
MD5 759f380985ef33daa521887c11e05b42
BLAKE2b-256 6fb31234debea40b5641eb06b6e4a881385daac2cf3b0988019fcfec379bdde5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.6-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6f48323102885fa315e17220a16b03b25ff5e0ad63713f8f2ee30b998cc9bb91
MD5 15abd0215c2f5bce4e6751ea5370452a
BLAKE2b-256 0519f8a05d61f2162c2b998eabd7268b72bc612d0ef19937ce06105bcbed6537

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.6-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7069f8358afef3ee78618b1ccb1bd9f0dc92cbdbc821e7daf99647e5b83c87b5
MD5 07545209f0bb9fa9c90b548bc9e94197
BLAKE2b-256 942e12105e0212a4dc599467bd83e2a758a53b7c68b395c030864881840b6746

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.6-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b1c1b78eb9f1a6203511db325dd3a6d0ea57fe0ef9e425fd4505a8d3af584ec2
MD5 98e4e22fbd5da6428751d897606d6f4b
BLAKE2b-256 f818c16f7534ddb57185ade8e7753b132d558cafc49fdc3e147bc5119beaf6f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.6-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4f47bbcf49c07b364ba7b83b10cce4f153eb4b43ba97c75f1583ba19b28f3b7c
MD5 4257d4431aed0088bc623dbab880aa5e
BLAKE2b-256 6c0ec247ca95e96cd5e4c8fccd8eb4dbf85201439e8cd88b80e28f7c84c06cea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.6-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d18160fd72f3c758db6e4003df43a520552356aa76b64f8d74316ca6e4930bc1
MD5 84c6f97b78042c3b48c698d76b1453c9
BLAKE2b-256 a546463ae6a63c29739f7ae1c477aa983be0c6664dbf1aabd898fbdd5838c531

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.6-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c255053cbc5d973df2277135c60113c8d96f35bee93c3d78e26fa72b9f2f1310
MD5 65dd022ef2521055c00924fbf565c45e
BLAKE2b-256 5088a578cf533d15f8bf393c4ae0daa63c5ffcfed8d9a345039d2aed2a29f826

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.6-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c91664176a714e6be8552f1347ffd6cb267dde75f6df2eeab6bb872382bf3457
MD5 93289d240bd6de9fafd916dc9809a1db
BLAKE2b-256 9766f2e5c4ec5fe2a9a922becfdfcfd9d64d4e1932e47017f88c954a924b3e2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.6-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 aed9581769c274114d14b8e6811d43a5470100fbb50235f32726e17569f650e6
MD5 65b4218ff6ee8239bc3c69b9479d640f
BLAKE2b-256 0fd3f1e8eb828de48e6b196bfb21ba04ae142c968423cdcc2eff434dd23bed02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.6-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1ab5897c7ea4a6ecd6ec1d2043bb836e6abc6bdaf3ea0aa871be26b7f310a4f0
MD5 77d2fbfcab017b297a0bed9adeac04b8
BLAKE2b-256 a4ece9612d5389411253ea2a14a0d6a52fd3b0f6efb900702f495eaa6b4b3783

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.6-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5ad0a88ed68466aa656e062cade895f6d26a04d9d3724d451d7d10d5c2288968
MD5 e9a4663f1fd0c955b6d95bca9e5ec595
BLAKE2b-256 8f909c36fa56de61f80947f12c9c6c14ef287d2840218fdb180fbb7019692331

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