Skip to main content

TAS prediction tool

Project description

Documentation Status made-with-python License: MIT tests pypi black

PyTASER

PyTASER Docs

Official Documentation

PyTASER is a Python (3.9+) library for simulating differential absorption in general, and transient absorption spectroscopy (TAS) in particular, features from quantum chemical calculations of crystals. The goal of this library is to simulate spectra for comparison with and interpretation of experiments. The main features include:

  • Spectra for insulating and semiconducting crystals
  • Components from individual band-to-band transitions
  • Spectra for different conditions: temperature and carrier concentrations
  • Consideration of non-magnetic and magnetic materials
  • Capability to input calculated bandstructure and density of states inputs with support for the Materials Project

Installation

To install the module with pip (recommended):

pip install pytaser

To install directly from the git repository:

pip install git+https://github.com/WMD-group/PyTASER

To do a manual build and installation:

python3 setup.py build
python3 setup.py install

PyTASER is compatible with Python 3.9+ and relies on a number of open-source packages, specifically:

Developer’s installation (optional)

For development work, PyTASER can also be installed from a copy of the source directory:

Download PyTASER source code using the command:

git clone https://github.com/WMD-group/PyTASER

Navigate to root directory:

cd PyTASER

Install the code with the command:

pip install -e .

This command tries to obtain the required packages and their dependencies and install them automatically.

Visualisation

One approach is to use a Jupyter Notebook, as shown in the examples folder. Alternatively, you can set up a file in Python to run in the command line of the terminal:

python3 <filename.py>

If using your own, locally calculated data, please follow this workflow. Otherwise, use the MP-integrated workflow here.

Contributing

We appreciate any contributions in the form of a pull request. Please see the Contributing documentation for more details. Additional analysis/example spectra performed with PyTASER would be welcomed.

Please feel free to reach out to us via the Issue Tracker if there are any questions or suggestions.

Testing

Unit tests are in the tests directory and can be run from the top directory using pytest. Automatic testing is run on the master and develop branches using Github Actions.

Please run tests and add new tests for any new features whenever submitting pull requests.

Future Work

Future topics we plan to build on:

  • Incorporating finite-temperature effects (particularly for indirect band-to-band transitions)
  • Direct treatment of pump-probe time delay and relaxation kinetics
  • Incorporating spin-flip processes for spin-polarised systems
  • Description of defective crystals

Acknowledgements

The project has been developed by @savya10, @kavanase and @youngwonwoo under the supervision of @utf and @aronwalsh.

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

pytaser-2.1.4.tar.gz (16.2 MB view details)

Uploaded Source

Built Distribution

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

pytaser-2.1.4-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file pytaser-2.1.4.tar.gz.

File metadata

  • Download URL: pytaser-2.1.4.tar.gz
  • Upload date:
  • Size: 16.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pytaser-2.1.4.tar.gz
Algorithm Hash digest
SHA256 96104f8c7346033b7b219044df75db50cac53a8175e98ab31f35df2fa889ea4c
MD5 34f1596b94aa7af8743efd1a0acf612b
BLAKE2b-256 35e56ed09fb4e04224fe47f3eb9bf17be3833a9726f1b5bb82a744bfd3cce73f

See more details on using hashes here.

File details

Details for the file pytaser-2.1.4-py3-none-any.whl.

File metadata

  • Download URL: pytaser-2.1.4-py3-none-any.whl
  • Upload date:
  • Size: 29.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pytaser-2.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8a74988da18efd648c17b17462d5937145b831b81913ea9688e7881595d039dd
MD5 7ca8e6e42328ef1c7d730f5a739b7a32
BLAKE2b-256 c9c9d3069a769f088d0c147007f5e46778e86c196b1b6079980f0d72199de06b

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