Aton is an all-in-one Python package that provides powerful and comprehensive tools for cutting-edge materials research.
Project description
Welcome to the Ab-iniTiO and Neutron research toolbox, or Aton. Just like its ancient Egyptian deity counterpart, this all-in-one Python package provides powerful and comprehensive tools for cutting-edge materials research, focused on (but not limited to) neutron science.
Aton provides a range of spectral analysis tools, from spectra normalisation to deuteration estimation using the DINS impulse approximation.
A set of physico-chemical constants and definitions is also included.
Aton also allows you to easily create, edit and analyse all kinds of text files, with a special focus on ab-initio calculations. In particular, it contains interfaces for Quantum ESPRESSO, Phonopy and CASTEP.
Check the full documentation online.
Installation
As always, it is recommended to install your packages in a virtual environment:
python3 -m venv .venv
source .venv/bin/activate
With pip
The fastest way to install Aton is through pip:
pip install aton
From source
Optionally, you can install Aton from the GitHub repository.
First install the dependencies:
pip install pandas numpy scipy
Then clone the repository or download the latest stable release as a ZIP, unzip it, and run inside the Aton/ directory:
pip install .
Documentation
The full Aton documentation is available online.
An offline version of the documentation is found at docs/aton.html.
Code examples are included in the examples/ folder.
Submodules
Aton contains the following modules:
- text. See General text edition.
- interface. See Interfaces for ab-initio codes.
- spectra. See Spectral analysis tools.
- units. Physical constants and conversion factors.
- atoms. Megadictionary with data for all chemical elements.
- elements. Sort and analyse element data, and manage the atoms dictionary.
- file. Manipulate files.
- call. Run bash scripts and related.
- alias. Useful dictionaries for user input correction.
General text edition
The text module includes the following general text-related submodules:
- text.find. Search for specific content in a text file.
- text.edit. Manipulate text files.
- text.extract. Extract data from raw text strings.
Interfaces for ab-initio codes
The interface module contains interfaces for several ab-initio codes. These are powered by the text module and can be easily extended. The following interfaces are included:
- interface.qe. Interface for Quantum ESPRESSO calculations.
- interface.phonopy. Interface for Phonopy calculations.
- interface.castep Interface for CASTEP calculations.
Spectral analysis tools
The spectra module IS YET TO BE IMPLEMENTED.
- Things...
Contributing
If you are interested in opening an issue or a pull request, please feel free to do so on GitHub.
For major changes, please get in touch first to discuss the details.
Code style
Please try to follow some general guidelines:
- Use a code style consistent with the rest of the project.
- Include docstrings to document new additions.
- Include tests for new features or modifications.
- Arrange function arguments by order of relevance. Most implemented functions follow something similar to
function(file, key/s, value/s, optional).
Testing with PyTest
If you are modifying the source code, you should run the automated tests of the tests/ folder to check that everything works as intended.
To do so, first install PyTest in your environment,
pip install pytest
And then run PyTest inside the Aton/ directory,
pytest -vv
Compiling the documentation
The documentation can be compiled automatically to docs/aton.html with pdoc and Aton itself, by running:
python3 makedocs.py
License
Copyright (C) 2024 Pablo Gila-Herranz
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the attached GNU Affero General Public License for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aton-0.0.1b3.tar.gz.
File metadata
- Download URL: aton-0.0.1b3.tar.gz
- Upload date:
- Size: 37.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1082a538beb00be58c3d695390cba55d661a8f9a991766014b77f5e42c465125
|
|
| MD5 |
b7cb4133bbf28e926ea62dca597c6533
|
|
| BLAKE2b-256 |
8e47d2822c0c59dba28e5e88d15bda53f61febf094379427a54e2a9aaa29ebdc
|
File details
Details for the file aton-0.0.1b3-py3-none-any.whl.
File metadata
- Download URL: aton-0.0.1b3-py3-none-any.whl
- Upload date:
- Size: 32.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c060a748479d75b11f390906285e44ca54f0586523d2117d38a965c96717a40
|
|
| MD5 |
f0cfd63082cede2c2462ea81c6509c19
|
|
| BLAKE2b-256 |
2c2829edf606ddbe1d465a3351401c98748ef90dd6422a9a872af55f8628aefe
|