Skip to main content

The Ab-iniTiO & Neutron research toolbox, or ATON, provides powerful and comprehensive tools for cutting-edge materials research, focused on (but not limited to) neutron science.

Project description

Welcome to ATON

The Ab-iniTiO & Neutron research toolbox, or ATON, provides powerful and comprehensive tools for cutting-edge materials research, focused on (but not limited to) neutron science. Designed to bridge the gap between theoretical modeling and experimental validation, ATON allows researchers to streamline and simplify workflows in the study of advanced materials.

Just like its ancient Egyptian deity counterpart, this all-in-one Python package comprises a range of utility tools from INS spectra analysis to ab-initio interfaces for Quantum ESPRESSO, Phonopy and CASTEP. Conversion factors and universal constants from the 2022 CODATA Recommended Values of the Fundamental Physical Constants are also included.

The source code is available on GitHub.
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

Install ATON with

pip install aton

Or upgrade to a new version as

pip install aton -U

From source

Optionally, you can install ATON from the GitHub repo. 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 is found at docs/aton.html.
Code examples are included in the examples/ folder.

Interfaces for ab-initio codes

The interface module contains Python interfaces for several ab-initio codes. These are powered by the aton.txt module and can be easily extended.

aton.interface

interface.qe Interface for Quantum ESPRESSO's pw.x module
interface.phonopy Interface for Phonopy calculations
interface.castep Interface for CASTEP calculations
interface.slurm Batch jobs via Slurm

Physico-chemical constants

The phys module contains physico-chemical definitions. Values are accessed directly as phys.value or phys.function().

aton.phys

phys.units Physical constants and conversion factors
phys.atoms Megadictionary with data for all chemical elements
phys.functions Functions to sort and analyse element data

Quantum rotations

The QRotor module is used to study quantum rotations, such as those of methyl and amine groups.

aton.qrotor

qrotor.rotate Rotate specific atoms from structural files
qrotor.constants Bond lengths and inertias
qrotor.system Definition of the quantum System object
qrotor.systems Functions to manage several System objects
qrotor.potential Potential definitions and loading functions
qrotor.solve Solve rotation eigenvalues and eigenvectors
qrotor.plot Plotting functions

Spectra analysis

The spx module includes tools for spectral analysis from Inelastic Neutron Scattering, Raman, Infrared, etc.

aton.spx

spx.classes Class definitions for the spectra module
spx.fit Spectra fitting functions
spx.normalize Spectra normalization
spx.plot Plotting
spx.deuterium Deuteration estimations via INS
spx.samples Sample materials for testing

General text edition

The txt module handles text files. It powers more complex subpackages, such as aton.interface.

aton.txt

txt.find Search for specific content in text files
txt.edit Manipulate text files
txt.extract Extract data from raw text strings

System tools

The st module contains System Tools for common system tasks across subpackages.

aton.st

st.file File manipulation
st.call Run bash scripts and related
st.alias Useful dictionaries for user input correction

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 automated tests for new features or modifications, see automated testing.
  • Arrange function arguments by order of relevance. Most implemented functions follow something similar to function(file, key/s, value/s, optional).

Automated testing

If you are modifying the source code, you should run the automated tests of the ATON/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

This runs Pdoc, updating links and pictures, and using the custom theme CSS template from the css/ folder.


Citation

ATON development started for the following paper, please cite if you use ATON in your work:
Cryst. Growth Des. 2024, 24, 391−404

License

Copyright (C) 2025 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

This version

0.3.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aton-0.3.4.tar.gz (102.8 kB view details)

Uploaded Source

Built Distribution

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

aton-0.3.4-py3-none-any.whl (112.8 kB view details)

Uploaded Python 3

File details

Details for the file aton-0.3.4.tar.gz.

File metadata

  • Download URL: aton-0.3.4.tar.gz
  • Upload date:
  • Size: 102.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for aton-0.3.4.tar.gz
Algorithm Hash digest
SHA256 19b066cecdca368f27a31349956b8c3625b75450a1349c7184c216dfc52c1c49
MD5 9268d87bdf0fac4f27fe5225d8a1b52e
BLAKE2b-256 83741a240350580e3eafa440de667d4d4297e8cffbf778e9badc8816c43ee096

See more details on using hashes here.

File details

Details for the file aton-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: aton-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 112.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for aton-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6c0e8ed4f6fcd027897c9a45ac0151bd33d1a98d9568770f662dce772a111be1
MD5 48c55e8e069c8ccde8b92a8a5e568cba
BLAKE2b-256 a924e445b4120b91ffe4d914114e13fe2467fa98610bc554082e32f4c885fcc7

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