Skip to main content

process single-shot positron annihlation lifetime spectra

Project description

python tools for analysing single-shot positron annihilation lifetime spectra

https://zenodo.org/badge/49681355.svg

Prerequisites

Tested using Anaconda (Continuum Analytics) with Python 2.7 and 3.5.

Package dependencies:

  • scipy, numpy, pandas

Installation

via pip (recommended):

pip install sspals

alternatively, try the development version

git clone https://github.com/PositroniumSpectroscopy/sspals
cd sspals

and then run

python setup.py install
pytest

About

Single-shot positron annihilation lifetime spectroscopy (SSPALS) [Ref. 1] essentially consists of studying the number of annihilation gamma-rays measured as a function of time following implantation of a time-focused (~5 ns) positron bunch into a solid target material.

For certain materials a significant fraction of the positrons (~ 30%) will bind to electrons to form positronium (Ps), which can then be re-emitted to vacuum. Ps has a characteristic mean lifetime of 142 ns in vacuum, which makes it relatively easy to identify in SSPALS spectra.

This package includes a handful of useful tools for working with SSPALS data. The two main functions are used to: (i) combine data split across hi/ low gain channels of a digital oscilloscope, and (ii) to estimate the amount of Ps formed using the so-called delayed fraction.

sspals.chmx(hi, low) > Remove zero offset from hi and low gain data, invert and splice together by swapping saturated values from the hi-gain channel for those from the low-gain channel. Apply along rows of a 2D array.

sspals.sspals(arr, dt, limits=[A, B, C]) > Calculate the trigger time t0 (using a cfd) and the delayed fraction (DF) (integral B->C / integral A->C) for each row of a 2D array. Return a pandas DataFrame [(t0, AC, BC, DF)].

Raw data (hi, low) is expected to be 2D arrays of repeat measurements, where each row contains a single SSPALS waveform.

For examples see the IPython/ Jupter notebooks,

https://github.com/PositroniumSpectroscopy/sspals/tree/master/examples

Refs.

  1. D. B. Cassidy et al. (2006), Appl. Phys. Lett., 88, 194105. http://dx.doi.org/10.1063/1.2203336

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sspals-0.1.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distributions

sspals-0.1.2-py3.7.egg (15.0 kB view details)

Uploaded Source

sspals-0.1.2-py3.6.egg (15.1 kB view details)

Uploaded Source

sspals-0.1.2-py2.py3-none-any.whl (8.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sspals-0.1.2.tar.gz.

File metadata

  • Download URL: sspals-0.1.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for sspals-0.1.2.tar.gz
Algorithm Hash digest
SHA256 31b844d779c16362ad8974319359428357357be214bdbc0f07eb0df51204c925
MD5 8cbdbf1357714aa0bc527c54024ad737
BLAKE2b-256 5e748359c0e762c1daf9b4e0aaf9160be5150819c53ca97cec07730901197cce

See more details on using hashes here.

File details

Details for the file sspals-0.1.2-py3.7.egg.

File metadata

  • Download URL: sspals-0.1.2-py3.7.egg
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for sspals-0.1.2-py3.7.egg
Algorithm Hash digest
SHA256 f81f9bb279022244cdfd59b7b572e1ea48d7a6035c2d581edfd7343ef0467cdd
MD5 4f25a6c837da93415d06bcf085753f67
BLAKE2b-256 a6b7c650b14872b764eb6fb260aa3ba5c776a5fe1bf8447eb04504831e490aef

See more details on using hashes here.

File details

Details for the file sspals-0.1.2-py3.6.egg.

File metadata

  • Download URL: sspals-0.1.2-py3.6.egg
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for sspals-0.1.2-py3.6.egg
Algorithm Hash digest
SHA256 d36b0873f6cbef594193c4d16cf731e73637ef27f516bff9351fbf1cb0e6373d
MD5 b0a8a4905713289f795daad8a9fd9547
BLAKE2b-256 b180432c608e5948c075be9e05221697daaf570caeb79d2889918bd68b5cf922

See more details on using hashes here.

File details

Details for the file sspals-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: sspals-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for sspals-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4b8f438195ff4feb295d1fcdda2ea70086dfa816eb69a10a93d4e4f47bf6c307
MD5 837a397df53e7da1ed4769ea12bb15a5
BLAKE2b-256 e8ed7773c48e1e9e6287aed28c95d0bcde6acc972c73fecb139e09bbb1318f1b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page