Skip to main content

at-aims - Ad hoc parser for FHI-aims output files.

This parser is designed to be a simple way to extract data from the output files of FHI-aims.

Installation

pip install ataims

Usage

FHI-aims typically outputs a single file, aims.out.

To parse the file, use the parse_outputfile function:

from ataims import parse_outputfile

output = parse_outputfile('aims.out')  # returns a single OutputData object
# or
output_list = parse_outputfile('aims.out', as_set=True)  # returns a list of parsed data

You can access the data in the output object:

# Result summary
print(output.results)
{
    'cell_volume': 572.2999274955883,
    'estimated_homo_lumo_gap': 0.01002036,
    'fermi_energy': -5.04135398,
    'highest_occupied_state': -5.04446227,
    'lowest_unoccupied_state': -5.03444191,
    'total_energy': -3013017.92658861,
}

# Calculation summary
print(output.calculation_summary)
{
    'calculation_exited_regularly': 'Yes',
    'code_version': '240507',
    'commit_number': '7e80a0c21',
    'largest_tracked_array_allocation_mb': 42.804,
    'number_of_tasks': 36,
    'peak_memory_among_tasks_mb': 326.687,
    'total_time': 10285.059,
}

# Dump entire output object to json string
print(output.dump())
# same with nested objects
print(output.results.dump())

# or a dictionary
print(output.model_dump())
print(output_list[0].model_dump())  # with `as_set=True`

For an example of a full output file see examples/example_output.json

Testing

pytest





Development of this parser was possible thanks to the support of

Atomic Tessellator


This project was inspired by some other brilliant FHI-aims tools:

Metadata

Release files for ataims 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ataims 0.1.1
File Size Uploaded Provenance
ataims-0.1.1.tar.gz 29.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ataims 0.1.1
File Interpreter ABI Platform
ataims-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 62.8 kB

Release files / ataims-0.1.1.tar.gz

Download URL ataims-0.1.1.tar.gz
Size 29.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bc2b1f6b0f722d371098bce35915af26faa994260de37d5d4807d79d55b1feef
BLAKE2b-256 checksum
How to use checksums
07d34008dfb9eb33135eaeeb7df5be523da05796e816c8a3467549e0f0db0b96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.2

Release files / ataims-0.1.1-py3-none-any.whl

Download URL ataims-0.1.1-py3-none-any.whl
Size 32.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f994871fcf78fc8dddf2837f3091e78adc63657ec3f46a4a1d4d34445d5edecf
BLAKE2b-256 checksum
How to use checksums
fd21bb94c2edb17a7cb570156e408fa6a30e5efe768a72c23206a7a7957055ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.2

Security for ataims 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page