No project description provided
Project description
Read RKF
Overview
read_rkf is a Python script designed to extract and parse essential data from ams.rkf files, which store critical results from AMS output files. These files typically contain:
- Trajectories
- Gradients
- Hessians
- Energies
- Band gaps and structures
- And more...
Installation
Ensure that you have Python ^3.9 installed and run the following command:
pip install read_rkf
Usage
1. Convert an RKF file to a JSON object
from read_rkf.creat_archive import rkf_to_json
json_data = rkf_to_json("path/to/your.rkf")
2. Convert an RKF file to a Python dictionary
from read_rkf.creat_archive import rkf_to_dict
python_dict = rkf_to_dict("path/to/your.rkf")
3. Check available sections in an RKF file
from read_rkf.parserkf import KFFile
data = KFFile("path/to/your.rkf")
all_sections = data.sections()
4. Read the content of a specific section
# Example: Reading the first section
section_content = data.read_section(all_sections[0])
License
This project is licensed under the MIT License.
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 read_rkf-0.1.1.tar.gz.
File metadata
- Download URL: read_rkf-0.1.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.9 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
870dbe325aba8668ada0375d2e833644a68b0e9c417f99f09c9c79ab2f3f22ae
|
|
| MD5 |
699fa2471f66d585a1b0675f3122c53e
|
|
| BLAKE2b-256 |
bff6dfdc855df1dd9fd9514e8c36a60dcf3b81a8d5b3db55872babd4cf9ca214
|
File details
Details for the file read_rkf-0.1.1-py3-none-any.whl.
File metadata
- Download URL: read_rkf-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.9 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27e9cba2df6b8c6ccdd57c705f619b08a6e0e3d23e41590eec84837759527295
|
|
| MD5 |
ebddeb75b736f2e0f00cc9fd86526893
|
|
| BLAKE2b-256 |
5a6da0dd66b4336f4c66775dd8e41c7497f4775cd4a6484368738251dc6ff1e3
|