Skip to main content

Data proccessing for THz-TDS. A scientific computing package for the processing of terahertz time-domain spectroscopy data. Includes modules for time-domain, transfer functions, frequency-domain, and data formatting.

Reason this release was yanked:

Subpackages not included in build.

Project description

THzPy

THzPy is a scientific computing library for processing terahertz time-domain spectroscopy data.

The aim of this library is simplify and speed up the analysis of THz-TDS data, as well as promote the standardisation of processing methods between research groups and industry.

Development of this package is ongoing, we are in the process of adding features and support for a wider range of experimental setups and processes. If you encounter any bugs or there are any specific features you would like to see added please get in touch.

Features

  • Windowing and filtering.
  • Extraction of optical constants.
  • Spectral feature extraction. (UPCOMING)
  • Support for the DotTHz file format. (see examples/basic_thz.py for a possible application)

Usage

The package can be installed via pip:

pip install thzpy

The package then presents various functions to use like so:

from thzpy.timedomain import common_window
from thzpy.transferfunctions import uniform_slab

# Apply the same hanning window to all datasets with a half-width of 15 ps.
reference, baseline = common_window([reference, baseline],
                                    half_width=15, win_func="hanning")

# Calculate buffer material properties.
buffer = uniform_slab(reference_thickness,
                      reference, baseline,
                      upsampling=3, min_frequency=0.2, max_frequency=3,
                      all_optical_constants=True)

Please see the examples folder for full demonstrations of how to use the package.

Documentation

GitHub

Authors

Feedback

If you have any feedback, please reach out to us at jnw35@cam.ac.uk

License

LGPLv3

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

thzpy-0.0.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thzpy-0.0.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file thzpy-0.0.2.tar.gz.

File metadata

  • Download URL: thzpy-0.0.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for thzpy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2b7173bbe12611068e2555e5688f2186279808a6fda9b912bf1a8ef447290c93
MD5 582033dcc901890afb0d013d265210ef
BLAKE2b-256 eceb71f75b7f4098bcea92a04f4510eb4399e3355ad7b5cefac6816d86310025

See more details on using hashes here.

Provenance

The following attestation bundles were made for thzpy-0.0.2.tar.gz:

Publisher: python-publish.yml on dotTHzTAG/thzpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file thzpy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: thzpy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for thzpy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 85b9fc9bac2ad10e3501d2946e2ed17c5a544f6c26b6fd82275e28a2b83f2226
MD5 7953dceb98d69513977c4d0470c00a3c
BLAKE2b-256 0c220baa0b1ecab1c99e1d48e04041ff12ca8ef9009ae5354d2d307e6a5aa29c

See more details on using hashes here.

Provenance

The following attestation bundles were made for thzpy-0.0.2-py3-none-any.whl:

Publisher: python-publish.yml on dotTHzTAG/thzpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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