TT - lab
Easy to use import scripts for the most common physics equipments such as XPS, mass spectrometer, light spectrometers. Functions for the most typical analysis procedures.
Installation
$ pip install ttlab
How to use
For full explanation, see the documentation at ‘link’.
Example with mass spectrometer data:
from ttlab import MassSpectrometer
# Create a mass spec object
filename = 'path/filename.asc'
MS = MassSpectrometer(filename)
# Check what gases are included in the data
print(MS.gases)
# Plot one of the gases, using matploltlib, returns the axes
ax = MS.plot_gas('Ar')
# Get the ion current and the relative time for the gas, returns np arrays with the data
ion_current_argon = MS.get_ion_current('Ar')
time_relative = MS.get_relative_time('Ar')
License
MIT license Feel free to use ttlab in whatever way you want to.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ttlab-0.46.2.tar.gz
(36.4 kB
view details)
File details
Details for the file ttlab-0.46.2.tar.gz.
File metadata
- Download URL: ttlab-0.46.2.tar.gz
- Upload date:
- Size: 36.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.11.0 pkginfo/1.7.0 requests/2.25.1 setuptools/38.6.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5c936590a9bd18bc8f5e40e6349954f991d6cee43ffb254eda9d65f5cc58017
|
|
| MD5 |
3866ae3d42d446768de846ebdb3e7385
|
|
| BLAKE2b-256 |
548127aa2838ea100e192a3392bc1beabff3e43bca4640017931a16b3629fd97
|