Skip to main content

Tools for XMVB orbital and Molden file conversion.

Project description

XMVB-Tools

xmvb-tools is a package for converting XMVB orbital data to and from Molden-related formats.

It currently provides five command-line tools:

  • vb2molden
  • gus2molden
  • molden2gus
  • no2molden
  • sortw

Installation

pip install xmvb-tools

Requirements

  • Python 3.10+
  • numpy

Usage

vb2molden

Convert XMVB VB orbitals from .orb , basis/geometry information from .xmo into a Molden file.

vb2molden <orb_prefix> <xmo_prefix>

Example:

vb2molden C6H6_xmvb4 C6H6_xmvb4

Output:

  • <orb_prefix>.molden

Options:

  • -b: disable basis conversion before writing the Molden GTO section

gus2molden

Convert XMVB guess orbitals embedded in an .xmo file into a Molden file.

gus2molden <xmo_prefix>

Example:

gus2molden C6H6_xmvb4

Output:

  • <xmo_prefix>_vbgus.molden

Options:

  • -b: disable basis conversion before writing the Molden GTO section

molden2gus

Read a Molden orbital file and interactively build an XMVB guess orbital file.

molden2gus <molden_prefix>

Example:

molden2gus SO4_lo

Output:

  • <molden_prefix>_gus.molden
  • <molden_prefix>.gus

Interactive commands:

  • <atoms> <orbitals>: extract selected orbitals on selected atoms
  • a <orbitals>: add whole orbitals for all atoms
  • r<angle> <orb1>,<orb2>: rotate two orbitals by the given angle in degrees
  • m<number> <orbital>: multiply one orbital by a scalar
  • q: write output files and exit

Examples:

  • 2,4 6-8,9
  • a 1-5
  • r45 1,2
  • m-1 4

You can also redirect commands from a text file:

molden2gus xx < xx.txt

no2molden

Convert natural orbitals embedded directly in a modern XMVB .xmo file into a Molden file.

no2molden <xmo_prefix>

Example:

no2molden C6H6_xmvb4

Output:

  • <xmo_prefix>_no.molden

Options:

  • -b: disable basis conversion before writing the Molden GTO section

sortw

Sort and print XMVB structure weights or coefficients from an .xmo file.

sortw <xmo_prefix> [weight_type]

Example:

sortw C6H6_xmvb4 w

Supported weight_type values:

  • w: WEIGHTS OF STRUCTURES
  • l: Lowdin Weights
  • i: Inverse Weights
  • r: Renormalized Weights
  • c: COEFFICIENTS OF STRUCTURES

default: w

Version support

Supported Version XMVB 3.x (branch XMVB3) XMVB 4.x (branch master)
Fixes
Future Updates
Python Package

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

xmvb_tools-0.2.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

xmvb_tools-0.2.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file xmvb_tools-0.2.1.tar.gz.

File metadata

  • Download URL: xmvb_tools-0.2.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xmvb_tools-0.2.1.tar.gz
Algorithm Hash digest
SHA256 24e303f196c72442a1c2d31a0f4085928cf0bd0880172eedd192a2e089a0d6dd
MD5 0d51919f7966ccc25471b938a95f2a6f
BLAKE2b-256 5b59c3d529f96d05b7cfaa1ebe8c1924ba298d659f91dc9206c792bd4c48df99

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmvb_tools-0.2.1.tar.gz:

Publisher: publish.yml on Usu171/xmvb-tools

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

File details

Details for the file xmvb_tools-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: xmvb_tools-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xmvb_tools-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f7216b1b6312d23fb113a2b94f2e323212d2f185bdedbf1e8e3b1ade78e0539
MD5 10eb1750e6c8d6ada6a87712cee88e18
BLAKE2b-256 e20b458956af23cc3b06b2328f23b87f431d7ec5930b904c1c460d27afe812e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmvb_tools-0.2.1-py3-none-any.whl:

Publisher: publish.yml on Usu171/xmvb-tools

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