pytaser


Namepytaser JSON
Version 2.3.0 PyPI version JSON
download
home_pagehttps://pytaser.readthedocs.io/en/latest/
SummaryTAS prediction tool
upload_time2024-02-07 23:45:57
maintainer
docs_urlNone
authorSavyasanchi Aggarwal
requires_python
licenseMIT
keywords dft tas semiconductor-physics solar-fuel materials-project metal-oxides
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Documentation Status](https://readthedocs.org/projects/pytaser/badge/?version=latest)](https://pytaser.readthedocs.io/en/latest/?badge=latest)
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![tests](https://github.com/WMD-Group/PyTASER/actions/workflows/build_and_test.yml/badge.svg)](https://github.com/WMD-Group/PyTASER/actions)
[![pypi](https://img.shields.io/pypi/v/pytaser)](https://pypi.org/project/pytaser)
[![black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://img.shields.io/badge/code%20style-black-000000.svg)

# PyTASER

[![PyTASER Docs](docs/PyTASER.png)](https://pytaser.readthedocs.io/en/latest/)

[Official Documentation](https://pytaser.readthedocs.io/en/latest/)

``PyTASER`` is a ``Python`` library for simulating differential absorption spectra in compounds using
quantum chemical calculations, including transient (TAS) and differential (DAS) absorption spectroscopies.
The goal of this library is to simulate spectra for comparison with and interpretation of experiments. The main features include:

* Transient (TAS) and differential (DAS) absorption spectra for insulating and semiconducting crystals
  (using pre-calculated DFT, or database calculations)
* Spectra for different temperature and carrier density conditions
* Separation of spectral contributions from individual band-to-band transitions
* Integration with the Materials Project database, allowing support for non-locally calculated materials
* Ability to produce publication-ready figures, with flexibility in plotting.


PyTASER is designed for users with moderate experience in computational methods and optical techniques, enabled by the following features:

* Use of Python as the programming language (due to its low entry barrier, flexibility and popularity in the materials modelling field)
* Documentation and easy-to-follow workflows with complete unit-test coverage.
* Interfaced with the popular materials analysis package [`pymatgen`](https://pymatgen.org/index.html).
* Currently compatible with VASP, while support for other electronic structure codes is planned – if you have a specific request, please open an issue!

# Background

TAS is a powerful pump-probe tool to characterise the excited states of materials, while DAS can be used to represent how changes in a system affects its ground-state optical absorption spectra. These techniques can be used to understand microscopic processes in photochemical and electrochemical transformations, including phenomena such as electron trapping and carrier recombination.

The drawback is that TAS spectra are difficult to interpret, especially for crystals where the specific valence and conduction band structure can give rise to complex features. Our goal here is to predict TAS features from first-principles starting from the most simple models of static excitations through to the kinetics of relaxation of the excited state back to the ground state.

To achieve this, PyTASER identifies the allowed vertical optical transitions between electronic bands of the material to determine possible excitations that can occur from the ground 'dark' and excited 'light' electronic states.
This is done by calculating the effective absorption in each state - this is a product of the joint density of states (JDOS) and the transition probability for each band transition, both of which are based on post-processing ground state DFT calculations. Once calculated, PyTASER compares changes in electronic transitions between the dark and light states, as demonstrated in the figure below.

<p align="center">
  <img src="docs/source/_static/jdos-tas-schematic.png" alt="Schematic TAS">
</p>
<p align="center">
  <em>Schematics of the ground and excited state electronic structures and optical profiles. The ground 'dark' state is at the top, showing full occupancy and unoccupancy (blue, orange) for the conduction and valence bands respectively. The excited 'light' state shows partial occupancy in a similar plot at the bottom. The overall DA plot is displayed to the right, the difference between the dark and light effective absorption plots.</em>
</p>

## JDOS method

# 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
```
Alternatively `python setup.py install` can also be used.

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

* [pymatgen](https://pymatgen.org/index.html) 
* [numpy](https://numpy.org/), [scipy](https://scipy.org/) for data structures and unit conversion
* [matplotlib](https://matplotlib.org/) for plotting the spectra

# 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 

The recommended approach is to use ``PyTASER`` within an interactive python environment (such as a Jupyter Notebook), as shown in the [tutorials](https://pytaser.readthedocs.io/en/latest/dft_examples.html) on the docs and the [examples](https://github.com/WMD-group/PyTASER/blob/main/examples) folder.
Alternatively, you can use ``PyTASER`` through python scripts (e.g. with `python <filename.py>`).

If using your own, locally calculated data, please follow [this](https://github.com/WMD-group/PyTASER/blob/main/examples/PyTASER_DFT_Example.ipynb) workflow.
Otherwise, use the MP-integrated workflow [here](https://github.com/WMD-group/PyTASER/blob/main/examples/PyTASER_MP_Example.ipynb). 

# Contributing

We appreciate any contributions in the form of a pull request. Please see the [Contributing](https://pytaser.readthedocs.io/en/latest/contributing.html) 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](https://github.com/WMD-group/PyTASER/issues) 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](https://pytest.org). 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, @LucasGVerga and @youngwonwoo, under the supervision of @utf and @aronwalsh.



            

Raw data

            {
    "_id": null,
    "home_page": "https://pytaser.readthedocs.io/en/latest/",
    "name": "pytaser",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "dft tas semiconductor-physics solar-fuel materials-project metal-oxides",
    "author": "Savyasanchi Aggarwal",
    "author_email": "savya10@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/11/59/8c180cb0f3a1a9023c02d76e96788ba29d276103a1a4d6e4991be6f52dfe/pytaser-2.3.0.tar.gz",
    "platform": null,
    "description": "[![Documentation Status](https://readthedocs.org/projects/pytaser/badge/?version=latest)](https://pytaser.readthedocs.io/en/latest/?badge=latest)\n[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![tests](https://github.com/WMD-Group/PyTASER/actions/workflows/build_and_test.yml/badge.svg)](https://github.com/WMD-Group/PyTASER/actions)\n[![pypi](https://img.shields.io/pypi/v/pytaser)](https://pypi.org/project/pytaser)\n[![black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://img.shields.io/badge/code%20style-black-000000.svg)\n\n# PyTASER\n\n[![PyTASER Docs](docs/PyTASER.png)](https://pytaser.readthedocs.io/en/latest/)\n\n[Official Documentation](https://pytaser.readthedocs.io/en/latest/)\n\n``PyTASER`` is a ``Python`` library for simulating differential absorption spectra in compounds using\nquantum chemical calculations, including transient (TAS) and differential (DAS) absorption spectroscopies.\nThe goal of this library is to simulate spectra for comparison with and interpretation of experiments. The main features include:\n\n* Transient (TAS) and differential (DAS) absorption spectra for insulating and semiconducting crystals\n  (using pre-calculated DFT, or database calculations)\n* Spectra for different temperature and carrier density conditions\n* Separation of spectral contributions from individual band-to-band transitions\n* Integration with the Materials Project database, allowing support for non-locally calculated materials\n* Ability to produce publication-ready figures, with flexibility in plotting.\n\n\nPyTASER is designed for users with moderate experience in computational methods and optical techniques, enabled by the following features:\n\n* Use of Python as the programming language (due to its low entry barrier, flexibility and popularity in the materials modelling field)\n* Documentation and easy-to-follow workflows with complete unit-test coverage.\n* Interfaced with the popular materials analysis package [`pymatgen`](https://pymatgen.org/index.html).\n* Currently compatible with VASP, while support for other electronic structure codes is planned \u2013 if you have a specific request, please open an issue!\n\n# Background\n\nTAS is a powerful pump-probe tool to characterise the excited states of materials, while DAS can be used to represent how changes in a system affects its ground-state optical absorption spectra. These techniques can be used to understand microscopic processes in photochemical and electrochemical transformations, including phenomena such as electron trapping and carrier recombination.\n\nThe drawback is that TAS spectra are difficult to interpret, especially for crystals where the specific valence and conduction band structure can give rise to complex features. Our goal here is to predict TAS features from first-principles starting from the most simple models of static excitations through to the kinetics of relaxation of the excited state back to the ground state.\n\nTo achieve this, PyTASER identifies the allowed vertical optical transitions between electronic bands of the material to determine possible excitations that can occur from the ground 'dark' and excited 'light' electronic states.\nThis is done by calculating the effective absorption in each state - this is a product of the joint density of states (JDOS) and the transition probability for each band transition, both of which are based on post-processing ground state DFT calculations. Once calculated, PyTASER compares changes in electronic transitions between the dark and light states, as demonstrated in the figure below.\n\n<p align=\"center\">\n  <img src=\"docs/source/_static/jdos-tas-schematic.png\" alt=\"Schematic TAS\">\n</p>\n<p align=\"center\">\n  <em>Schematics of the ground and excited state electronic structures and optical profiles. The ground 'dark' state is at the top, showing full occupancy and unoccupancy (blue, orange) for the conduction and valence bands respectively. The excited 'light' state shows partial occupancy in a similar plot at the bottom. The overall DA plot is displayed to the right, the difference between the dark and light effective absorption plots.</em>\n</p>\n\n## JDOS method\n\n# Installation\n\nTo install the module with `pip` (recommended): \n\n```\npip install pytaser\n```\nTo install directly from the git repository:\n```\npip install git+https://github.com/WMD-group/PyTASER\n```\nAlternatively `python setup.py install` can also be used.\n\nPyTASER is compatible with Python 3.9+ and relies on a number of open-source packages, specifically:\n\n* [pymatgen](https://pymatgen.org/index.html) \n* [numpy](https://numpy.org/), [scipy](https://scipy.org/) for data structures and unit conversion\n* [matplotlib](https://matplotlib.org/) for plotting the spectra\n\n# Developer\u2019s installation (optional)\n\nFor development work, PyTASER can also be installed from a copy of the source directory:\n\nDownload PyTASER source code using the command:\n```\ngit clone https://github.com/WMD-group/PyTASER\n```\nNavigate to root directory:\n```\ncd PyTASER\n```\nInstall the code with the command:\n```\npip install -e .\n```\nThis command tries to obtain the required packages and their dependencies and install them automatically.\n\n# Visualisation \n\nThe recommended approach is to use ``PyTASER`` within an interactive python environment (such as a Jupyter Notebook), as shown in the [tutorials](https://pytaser.readthedocs.io/en/latest/dft_examples.html) on the docs and the [examples](https://github.com/WMD-group/PyTASER/blob/main/examples) folder.\nAlternatively, you can use ``PyTASER`` through python scripts (e.g. with `python <filename.py>`).\n\nIf using your own, locally calculated data, please follow [this](https://github.com/WMD-group/PyTASER/blob/main/examples/PyTASER_DFT_Example.ipynb) workflow.\nOtherwise, use the MP-integrated workflow [here](https://github.com/WMD-group/PyTASER/blob/main/examples/PyTASER_MP_Example.ipynb). \n\n# Contributing\n\nWe appreciate any contributions in the form of a pull request. Please see the [Contributing](https://pytaser.readthedocs.io/en/latest/contributing.html) documentation for more details.\nAdditional analysis/example spectra performed with `PyTASER` would be welcomed.\n\nPlease feel free to reach out to us via the [Issue Tracker](https://github.com/WMD-group/PyTASER/issues) if there are any questions or suggestions. \n\n# Testing\n\nUnit tests are in the `tests` directory and can be run from the top directory using [pytest](https://pytest.org). Automatic testing is run on the master and develop branches using Github Actions. \n\nPlease run tests and add new tests for any new features whenever submitting pull requests.\n\n# Future Work\n\nFuture topics we plan to build on:\n\n* Incorporating finite-temperature effects (particularly for indirect band-to-band transitions)\n* Direct treatment of pump-probe time delay and relaxation kinetics \n* Incorporating spin-flip processes for spin-polarised systems\n* Description of defective crystals \n\n# Acknowledgements\n\nThe project has been developed by @savya10, @kavanase, @LucasGVerga and @youngwonwoo, under the supervision of @utf and @aronwalsh.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "TAS prediction tool",
    "version": "2.3.0",
    "project_urls": {
        "Homepage": "https://pytaser.readthedocs.io/en/latest/"
    },
    "split_keywords": [
        "dft",
        "tas",
        "semiconductor-physics",
        "solar-fuel",
        "materials-project",
        "metal-oxides"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ef65128eb571e26bf9e8e8b39409b3ac1596334fd1acada6258d47dfcae1912d",
                "md5": "2d78cc3a6f94c861511592358bccd81e",
                "sha256": "b4602bdac59acf1e9ea43e64d418945197cf8cc95060bc5854871ac2a4cbf049"
            },
            "downloads": -1,
            "filename": "pytaser-2.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2d78cc3a6f94c861511592358bccd81e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 31450,
            "upload_time": "2024-02-07T23:45:55",
            "upload_time_iso_8601": "2024-02-07T23:45:55.367732Z",
            "url": "https://files.pythonhosted.org/packages/ef/65/128eb571e26bf9e8e8b39409b3ac1596334fd1acada6258d47dfcae1912d/pytaser-2.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "11598c180cb0f3a1a9023c02d76e96788ba29d276103a1a4d6e4991be6f52dfe",
                "md5": "f0954688bca3233a1f9a11d0d5c18935",
                "sha256": "c9db3fcb5b35167768a6ecf81b5b36c2536db54522edda69de674692828952fb"
            },
            "downloads": -1,
            "filename": "pytaser-2.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f0954688bca3233a1f9a11d0d5c18935",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 89528904,
            "upload_time": "2024-02-07T23:45:57",
            "upload_time_iso_8601": "2024-02-07T23:45:57.897367Z",
            "url": "https://files.pythonhosted.org/packages/11/59/8c180cb0f3a1a9023c02d76e96788ba29d276103a1a4d6e4991be6f52dfe/pytaser-2.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-07 23:45:57",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pytaser"
}
        
Elapsed time: 0.18214s