Skip to main content

A Python package to calculate the angles of quaternions with respect to a reference quaternion considering the point group symmetry of the rigid body

Project description

invQ

invQ is a Python package to calculate the angles of quaternions with respect to a reference quaternion considering the point group symmetry of the rigid body.

Quaternion

You may look at Wikipedia for details.

Contributor

Installation

Prerequisites

  1. python3 or higher
  2. rowan

Installation via pip

pip install pltRDF

Using source code

git clone https://github.com/sumitavakundu007/invQ.git
tar -xvf invQ-X.X.X
cd invQ-X.X.X
python3 setup.py install --user

Usage

from invQ import invQuat
invQuat("orientations.json", "equivQ.json")

You need to prepare 'orientations.json' and 'equivQ.json'

Sample format for 'orientations.json'

{
    "refQ" : [1, 0, 0, 0],   # The refernce quaternion which you want to use to calculate the angles
    "Orientations" : [[1, 0, 0, 0]]   # The quaternions of the rigid body 
}

Sample format for 'equivQ.json'

{
    "Equivalent_orientations" : [[1, 0, 0, 0]]   # Equivalent quaternions from the point group symmetry of the rigid body.
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

[MIT](https://choosealicense.com/licenses/mit/

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

invQ-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

invQ-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: invQ-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.3 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9

File hashes

Hashes for invQ-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f971513de9f93ebd571d5aabd7f7eb631a7a9499a0688fd533c4c5b3870c28dc
MD5 63a926faa5c3d3584ab013d5a6efd119
BLAKE2b-256 f07046017093cd18c6ff69b935ce1239cc222acd4814b1e2226ae941532885e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: invQ-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.3 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9

File hashes

Hashes for invQ-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f513ed3c1a4ebd8d8f95ce2e64f3a0da6574d0264f5df8b8a56ea9cff1d715df
MD5 6369d12fe154d4ca029e0ad1c686c139
BLAKE2b-256 c5363c1af4678df128c0fac473138178805d6a9f0e3adc1a7128940a870b20f6

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