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.

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:

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.1.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.1-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ataims-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 bc2b1f6b0f722d371098bce35915af26faa994260de37d5d4807d79d55b1feef
MD5 45f91a2e412186a23da4dacadb301e4c
BLAKE2b-256 07d34008dfb9eb33135eaeeb7df5be523da05796e816c8a3467549e0f0db0b96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ataims-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f994871fcf78fc8dddf2837f3091e78adc63657ec3f46a4a1d4d34445d5edecf
MD5 5bb66c0249303ed3c1aabc793ab91ea0
BLAKE2b-256 fd21bb94c2edb17a7cb570156e408fa6a30e5efe768a72c23206a7a7957055ec

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