Package for converting CASTEP .phonon files to .json files.
Project description
phonon-to-json
Converts CASTEP .phonon files into .json files readable by TSS Physics Phonon Visualiser.
Install
To install phonon-to-json run:
pip install phonon-to-json
Dependencies
phonon-to-json requires
castep-outputsspglibnumpy
Command line
phonon-to-json is designed to be run as a command line tool. To run:
phonon_to_json [filename] [name] [formula]
[filename]is the name of the .phonon file (excluding the .phonon extension)[name]is the name of the compound, as displayed at the top of the website[formula]is the chemical formula of the compound
[name] and [formula] are optional, if ommited [filename] will be used
As a module
To use phonon-to-json as a module import json_dumper:
import phonon_to_json as pj
filename = "[filename]"
name = "[name]"
formula = "[formula]"
r_data = pj.read_file(filename)
w_data = pj.read_to_write(r_data, name, formula)
pj.write_file(filename, w_data)
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
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 phonon_to_json-0.0.4.tar.gz.
File metadata
- Download URL: phonon_to_json-0.0.4.tar.gz
- Upload date:
- Size: 41.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f083125dbdbe6091aa288271ecb2f861ecc1f724358b607cf7246ff86075f0c3
|
|
| MD5 |
556d357918d6b38575381043fe3ab583
|
|
| BLAKE2b-256 |
fa7ea324fab8eafa5dc1e4f17dcc62e4444c13d657bdaad1e5524ebcfbd35077
|
Provenance
The following attestation bundles were made for phonon_to_json-0.0.4.tar.gz:
Publisher:
python-publish.yml on byornski/phonon-to-json
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phonon_to_json-0.0.4.tar.gz -
Subject digest:
f083125dbdbe6091aa288271ecb2f861ecc1f724358b607cf7246ff86075f0c3 - Sigstore transparency entry: 756868077
- Sigstore integration time:
-
Permalink:
byornski/phonon-to-json@9f556a7a489d6028d26e382aefa2de8999f46b00 -
Branch / Tag:
refs/tags/v.0.05 - Owner: https://github.com/byornski
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9f556a7a489d6028d26e382aefa2de8999f46b00 -
Trigger Event:
release
-
Statement type:
File details
Details for the file phonon_to_json-0.0.4-py3-none-any.whl.
File metadata
- Download URL: phonon_to_json-0.0.4-py3-none-any.whl
- Upload date:
- Size: 10.8 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 |
86f2c5c702bd2ac648696199966e8edf3549dc002ee46f35e243c241413f8a01
|
|
| MD5 |
bc2aa5b76c1a1053caeed1f0dd01bbe3
|
|
| BLAKE2b-256 |
a718da3c4e8c5722eef4a1ace2b0adaba0b89b1d30995420eac6fdca014d5f32
|
Provenance
The following attestation bundles were made for phonon_to_json-0.0.4-py3-none-any.whl:
Publisher:
python-publish.yml on byornski/phonon-to-json
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phonon_to_json-0.0.4-py3-none-any.whl -
Subject digest:
86f2c5c702bd2ac648696199966e8edf3549dc002ee46f35e243c241413f8a01 - Sigstore transparency entry: 756868079
- Sigstore integration time:
-
Permalink:
byornski/phonon-to-json@9f556a7a489d6028d26e382aefa2de8999f46b00 -
Branch / Tag:
refs/tags/v.0.05 - Owner: https://github.com/byornski
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9f556a7a489d6028d26e382aefa2de8999f46b00 -
Trigger Event:
release
-
Statement type: