Skip to main content

python 3.6-3.8 pypi Language grade: Python

OscSiPM

Instruments to make a photocounting statistics from histograms and raw oscillograms (made by LeCroy oscilloscope or old Tektronix oscilloscope) of SiPM signal. One can correct the baseline of the oscillogram and compensate a crosstalk noise in the photocounting statistics.

Installation

OscSiPM is available at pip. It may be installed with

pip install oscsipm

How to use?

Import necessary modules:

from oscsipm import PulsesHistMaker, QStatisticsMaker, find_pcrosstalk, compensate

Import an experimental data

datadir = "C:\\expdata\\"
parser = PulsesHistMaker(datadir, vendor='tek', parallel=True, parallel_jobs=-2)
parser.read()

Make a histogram

histfile = "C:\\histograms\\test.txt"
parser.multi_pulse_histogram(frequency=1e6, time_window=10e-9)
parser.save_hist(histfile)

Make a photocounting statistics

histfile = "C:\\histograms\\test.txt"
qmaker = QStatisticsMaker(histfile, amplitude_discrete=0.021, method='manual')
Q = qmaker.Q

Determine a crosstalk probability (if an optical signal is coherent) and compensate it

PDE = 0.4
pcrosstalk, res = find_pcrosstalk(Q, PDE, N=50)
Q1 = compensate(Q, pcrosstalk)

Requirements

See requirements.txt

Release files for oscsipm 0.6.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oscsipm 0.6.4
File Size Uploaded
oscsipm-0.6.4.tar.gz 12.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oscsipm 0.6.4
File Interpreter ABI Platform
oscsipm-0.6.4-py3-none-any.whl Python 3 none any Details

Total release size: 25.8 kB

Release files / oscsipm-0.6.4.tar.gz

Download URL oscsipm-0.6.4.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1e906aea4fdf905e63100ad5caa97a9d0b114ccbec1bc7c567eb9044b077aa2f
BLAKE2b-256 checksum
How to use checksums
51ac3e495694aef5810460915293cc1fc63a5facfa1ef5b124d569a43d480e28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Release files / oscsipm-0.6.4-py3-none-any.whl

Download URL oscsipm-0.6.4-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15d7a9958603f4f81245a8024c1bb441868d22f53f647dc084d7d8fef1539649
BLAKE2b-256 checksum
How to use checksums
e7bf869106a5c8acfe7707bcbede5c6198a286a8b5e158b201b0c770ca51d7b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.6.4 This release

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page