Skip to main content

A package for parsing AIMS output files

Project description

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.

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

Installation

pip install -r requirements.txt

Development

pip install -e .

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:

Project details


Download files

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

Source Distribution

ataims-0.1.0.tar.gz (29.9 kB view details)

Uploaded Source

Built Distribution

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

ataims-0.1.0-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file ataims-0.1.0.tar.gz.

File metadata

  • Download URL: ataims-0.1.0.tar.gz
  • Upload date:
  • Size: 29.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for ataims-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7a433fb511b25733cca7dcd69e69f17c12d3f8368aace8aa70fbc8dcd1ba1120
MD5 72e9dfff42e119fbaf5b91e78f8d0383
BLAKE2b-256 a645e888c064f6f3c266ec2c393d0cc5fe226417536b4a72761dcdb40ab0d0ad

See more details on using hashes here.

File details

Details for the file ataims-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ataims-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for ataims-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1cd98476ac6fc5e6be8034d32fa36b79d7ee5fa99280d3edc419a84cad0eaaa
MD5 b4c4506fc5988dfc8b77b7fc1632c745
BLAKE2b-256 f76bb5b80178b5890974c58709e568eed6ed814bd55edf69a3b02f38c06c7328

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