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

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

swgo_wave-0.2.3-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.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (349.7 kB view details)

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

swgo_wave-0.2.3-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.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (349.6 kB view details)

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

swgo_wave-0.2.3-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.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (349.6 kB view details)

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

swgo_wave-0.2.3-cp311-cp311-musllinux_1_2_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

swgo_wave-0.2.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (343.8 kB view details)

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

swgo_wave-0.2.3-cp310-cp310-musllinux_1_2_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

swgo_wave-0.2.3-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (342.8 kB view details)

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

swgo_wave-0.2.3-cp39-cp39-musllinux_1_2_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

swgo_wave-0.2.3-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (343.6 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.3-cp314-cp314t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for swgo_wave-0.2.3-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c04f869428e4a93992ee4e9b74404f1116ef7efa742814032e770fc23844dfa5
MD5 1464d8e3bf3dfd99b5dca87c36d78dd3
BLAKE2b-256 fd7ae740967de7706ca23dfeddc6eae5cd1a9b002565cb1dc3a608e89d49724a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.3-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7eec202edd2a1507d5c435d68ca5d8dcd76f70c02d926752f299f1cb0c26efc0
MD5 e8a00ba3af5ffbd8fbe8e70f28f48126
BLAKE2b-256 944cac02fa6f5428c1fdf77e3a370d3c80ffa0ae970429897907df7a3f03076c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.3-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 72a5b134c9a072a290249bcdfe68b37e32b18e2ccb19038ca6535cb50df04ddb
MD5 8b8eea444b6515843a362de1f8df5f21
BLAKE2b-256 e459083a595b1500c302c8d3b51f091c0b8136bde698e897e3124bd08ca9a116

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fd6c9985e39468647006a61ed251cd6b1186cc0aac90386488f1ed1cbef4bf8c
MD5 55a514f0ffa7f90df28d2ea7db39b0e1
BLAKE2b-256 49ee7570bfa3f0e2f7cc65f8e073589b343991be9638963dc573ea1e158a7703

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.3-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 66058b65c20858bb6fa599b0def099bca6bce9b2149069a5697fd906b67554d5
MD5 c61ee93b14f3298a15c1631ee8b9ec48
BLAKE2b-256 9a0825b2faac25278a7bc364fe82e44ba77c6557636931699a79a4a14d221ea3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4980f2eef0d883bc2f356444afdf2c436543fc5d6bce93ab973ec4fb24f375dc
MD5 dfab0067544d06072234963e765f90cc
BLAKE2b-256 28c9ee367b6b6b577fd7095e8ce70a42834b05877b32fe8f33f3a266f3f36a3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.3-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 94bb53f4beedf6988a2ea16b0ab29d52673c617cd3c5e2cba9c8df7c346eabde
MD5 f96a5d9d2ed196f36a02bbc77949997c
BLAKE2b-256 2c1a1da268bf15ddfd29a9fa0ca23339cf57b31aac618fe6c2e717b993490f68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d89bd6c52248ef8f0d2857ac335276da7988a8e58a3ff8e81f54f3715182b11d
MD5 99b53c956c4467b498eb4218eaabe679
BLAKE2b-256 a2d6ca89bea982a97c9322852c7d6fe5474211a51e15b810c872262d91423196

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.3-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 12b3d5cbf698451941880e36fe6217b84817bfd7dbe7fe678529065932ca2df4
MD5 3f3bf02e10577a017ebe4e7ba5f11bf6
BLAKE2b-256 0ecc220124522ad2722da26fc1b69a7d171ecff5f37ac816b21681e6df6cf490

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 aa3b55ec54d0927d063d5766f4d2b44a193e18e5c33b07862ea11b28ca47ec79
MD5 17b6059b2bbd8a2ebcce05a18e27b1f4
BLAKE2b-256 0dc3a618c746bd18b0e184d2802c72230216287bff7d99886f272370ccde63e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.3-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 cadcf2ce2bc61c734c76b5b8b7fbf7e4e37b2792f6f0ff9c6b7036b4063ec2e3
MD5 33888321759a6339528a40cc3375bf25
BLAKE2b-256 45c89e0ee61ace0b29d964d497b83754d4df08a099b2bd3b0b520e50e135ccdd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.3-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2ca8b9078df70bfd209d326dbcf969bc9ee2c5839a7d529239b73671a9790dbc
MD5 6676911be2e241910783f6afcf296302
BLAKE2b-256 7b90b1af80ad1e7c8a3c8eb03e05e1948807177d19d0b37d5e3c57c3c5ac85e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.3-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8734fbc80cf721504af608aeef3d00f5cc71ab4b9eddc697dc935cf465150836
MD5 2a506a0662510992ba09a94c9107ad70
BLAKE2b-256 e93144a519dde7bef201078558f9c93b109d0c65dc888522cf87ff5e766dfa25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swgo_wave-0.2.3-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0e6b005386a11be4a0974b52face73fa99f2146e79aa3dc33e47deb8dd9edacc
MD5 d777530e475ca9cdd8c2f17c5935b5f1
BLAKE2b-256 8b90e1717e4d7b02f884f4c8c972f3b0bec62333230908020088dd536e7329d3

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