Useful tools for infRETIS simulations
Project description
∞tools 🧰
👷♂️ Work in progress python package that provide various ∞RETIS tools for tasks like setting up simulations and analyzing data. 📈
🤝 Contributions of tools and modifications are welcome – feel free to submit your enhancements! 🚀
Installation
- Clone the repository
- (Optional) Create a virtual environment
- Install with:
python -m pip install -e .
Usage
inft -h
inft center_periodic
The command inft center_periodic can be run to re-center an .xyz trajectory to a certain atom index. For example, to center the first atom C at index 0 in the co2.xyz frame in examples/co2.xyz with cubic box length of 12.4138, the following command can be ran:
inft center_periodic -i co2.xyz -o co2_c.xyz -c 12.4138 -idx 0
Development practice
Current CLI capabilities is powered by the Typer python library.
Python files
Any function function_name in a python file *.py with the following structure
from typing import Annotated
def function_name(
args1: Annotated[str, typer.Option("-args1", help="var1")],
args2: Annotated[int, typer.Option("-args2", help="var2")],
):
"""
Function description
"""
added to the folders inftools/exercises, inftools/tistools and inftools/xyz will automatically be callable via the terminal as
inft function_name -args1 var1 -args2 var2
Individual functions
Individual functions can also be added to the CLI library by including them in inftools/bin.py, as done for the wham function in the inftools/analysis folder:
from inftools.analysis.wham import wham
MAPPER["wham"] = wham
Testing
The CLI functions are tested by utilizing the pytest python library.
The tests included in the inftools/test folder can be ran by running the following command in the terminal:
pytest
We currently do not have a testing policy but please do include tests for the included CLI functions for higher coverage.
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 inftools-2026.1.tar.gz.
File metadata
- Download URL: inftools-2026.1.tar.gz
- Upload date:
- Size: 62.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
166618b4c480d0a2eaf8a1188dcce8a2c92744a008f8950605ef1f88fabb2a01
|
|
| MD5 |
50aa5526f036972f6d563af2b31d88df
|
|
| BLAKE2b-256 |
5a9b19227139252860e62251dbdbc5a9822c52d579952eca7c632c36976fac49
|
Provenance
The following attestation bundles were made for inftools-2026.1.tar.gz:
Publisher:
python-publish.yml on infretis/inftools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
inftools-2026.1.tar.gz -
Subject digest:
166618b4c480d0a2eaf8a1188dcce8a2c92744a008f8950605ef1f88fabb2a01 - Sigstore transparency entry: 1041659929
- Sigstore integration time:
-
Permalink:
infretis/inftools@67b23c404721a16ff52346fbc17773436d38491f -
Branch / Tag:
refs/tags/2026.1 - Owner: https://github.com/infretis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@67b23c404721a16ff52346fbc17773436d38491f -
Trigger Event:
release
-
Statement type:
File details
Details for the file inftools-2026.1-py3-none-any.whl.
File metadata
- Download URL: inftools-2026.1-py3-none-any.whl
- Upload date:
- Size: 80.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86c87b2ef2bacd911bcd59462a19b4247df68e8c084ac58f27be06ec6a6666c7
|
|
| MD5 |
79f72cfaf045598552ec6d5c114dd513
|
|
| BLAKE2b-256 |
c90786e1a8b55ee456be5d211f6af21a95fca566e37a451a11f18cc64e8753bd
|
Provenance
The following attestation bundles were made for inftools-2026.1-py3-none-any.whl:
Publisher:
python-publish.yml on infretis/inftools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
inftools-2026.1-py3-none-any.whl -
Subject digest:
86c87b2ef2bacd911bcd59462a19b4247df68e8c084ac58f27be06ec6a6666c7 - Sigstore transparency entry: 1041659957
- Sigstore integration time:
-
Permalink:
infretis/inftools@67b23c404721a16ff52346fbc17773436d38491f -
Branch / Tag:
refs/tags/2026.1 - Owner: https://github.com/infretis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@67b23c404721a16ff52346fbc17773436d38491f -
Trigger Event:
release
-
Statement type: