Skip to main content

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

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

phonon_to_json-0.0.4.tar.gz (41.7 kB view details)

Uploaded Source

Built Distribution

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

phonon_to_json-0.0.4-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

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

Hashes for phonon_to_json-0.0.4.tar.gz
Algorithm Hash digest
SHA256 f083125dbdbe6091aa288271ecb2f861ecc1f724358b607cf7246ff86075f0c3
MD5 556d357918d6b38575381043fe3ab583
BLAKE2b-256 fa7ea324fab8eafa5dc1e4f17dcc62e4444c13d657bdaad1e5524ebcfbd35077

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for phonon_to_json-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 86f2c5c702bd2ac648696199966e8edf3549dc002ee46f35e243c241413f8a01
MD5 bc2aa5b76c1a1053caeed1f0dd01bbe3
BLAKE2b-256 a718da3c4e8c5722eef4a1ace2b0adaba0b89b1d30995420eac6fdca014d5f32

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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