tkinter Atomic Simulation Environment Graphical User Interface
The unofficial GUI for ASE.
An attempt to preserve and develop the good old GUI version. (See (https://gitlab.com/ase/ase/-/issues/492), (https://gitlab.com/ase/ase/-/merge_requests/1862))
Features
- Undo/redo and cut/copy/paste atom editing;
- Bulk crystal, nanoparticle, nanotube, and surface-slab setup dialogs;
- ASE-style constraint editing with
Fix,Release,Clear all constraints, and per-axisFixCartesiancontrols; - Interfaces for Lennard-Jones, EMT, GPAW, a harmonic bond toy calculator, and MatGL machine learning interatomic potential (MLIP);
- Calculation of total energy and forces, with energy/max-force status readout;
- Relaxation of atomic structures;
- Molecular dynamics with optional Maxwell-Boltzmann velocity initialization, stationary/zero-rotation options;
- Per-frame charge preservation and syncing for trajectories and exports;
- Trajectory export with cached calculator results and charges preserved;
- Trajectory analysis with multi-frame radial distribution functions;
- Velocity/force autocorrelation with frame strides, lag limits, and all/selected/visible atom scopes;
- Phonon DOS from the velocity autocorrelation function, plotted in
THz,eV, orcm^-1; - IR spectra from charge-weighted atomic velocities, plotted in
THz,eV, orcm^-1;
Analysis tools
Analysis -> Autocorrelation ...computes velocity or force autocorrelation functions. The default timestep is taken from the current Dynamics settings.Analysis -> Phonon DOS ...computes a non-normalized phonon DOS from the velocity autocorrelation function. The Python API also acceptsnormalize=True.Analysis -> IR spectra ...computes a raw one-sided|FFT(dμ/dt)|²spectrum usingdμ/dt = Σᵢ qᵢ vᵢ. Charges are read fromAtoms.arrays['initial_charges']or cached calculator results; ASE dipole and polarization helpers are not used. Per-frame charge changes are accepted, whiledqᵢ/dtis neglected.
Requirements
- Python 3.11 or newer;
- ASE 3.23 or newer (below 3.31);
- NumPy 1.24 or newer;
- Matplotlib 3.7 or newer;
- MatGL (optional, for MLIP);
- A working Tk installation with a display.
Installation
Stable version is avaialble through PyPi:
pip install tkasegui
The up-to-date development version may be installed as follows:
pip install .
For development:
pip install -e '.[test,gui]'
For optional MatGL MLIP support:
pip install '.[mlip]'
Select the MLIP model folder from Simulation -> Set Calculator -> MLIP -> Setup.
Run the GUI with:
tkasegui
or:
python -m tkasegui
Run without opening a GUI using:
python -m tkasegui -t trajectory.traj -g i,e
Tests
Headless numerical and CLI tests:
pytest -m "not gui"
GUI tests require X11 emulation:
xvfb-run -a pytest -m gui
All tests:
xvfb-run -a pytest
Metadata
Release files for tkasegui 0.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tkasegui-0.9.1.tar.gz | 103.5 kB | Without provenance | Details for tkasegui-0.9.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tkasegui-0.9.1-py3-none-any.whl | Python 3 | none | any | Details for tkasegui-0.9.1-py3-none-any.whl |
Total release size: 219.6 kB
Release files / tkasegui-0.9.1.tar.gz
| Download URL | tkasegui-0.9.1.tar.gz |
|---|---|
| Size | 103.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3965ce131324372437f0fc3a9b6387a2875f1a0ac7b7ddfc5794162365b405c
|
|
BLAKE2b-256 checksum How to use checksums |
9d96084ab5f75c0d29f6a4a627f7544ff89d4498c8b985844b622efe91d562ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|
Release files / tkasegui-0.9.1-py3-none-any.whl
| Download URL | tkasegui-0.9.1-py3-none-any.whl |
|---|---|
| Size | 116.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21c5d14d24b7c5b98ed4faf72c7bfb0b4690cfd8c4ec853dda83dbdcca1fdef2
|
|
BLAKE2b-256 checksum How to use checksums |
dba99168b38efd225e9bf01fa88e1171f7c727b1c10592ffe9d217ea14a74562
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|
Security for tkasegui 0.9.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.