Molecular and Surface drawing program.
Project description
TCviewer
Quickly display molecules and surfaces with our TCviewer program. TCviewer is easy to use and yields beautiful figures.
Installation
Currently, the installation can be done by cloning this repository and having all necessary dependencies.
The following is for people who would like to install the repository themselves. For example, to edit and/or contribute code to the project.
First clone this repository:
git clone git@github.com:TheoChem-VU/TCviewer.git
Then move into the new directory and install the package:
cd TCviewer
python -m pip install --upgrade build
python -m build
python -m pip install -e .
To get new updates, simply run:
git pull
Usage
TCviewer exports the Screen object which can be used to quickly build a scene. All the heavy work, such as setting up the camera, building and coloring meshes, will be done in the background. Please see the examples section for some simple example scripts for you to try out.
Examples
To draw a molecule, simply run:
from tcviewer import Screen
from scm import plams
molecule = 'path/to/molecule.xyz' # molecules can be given as paths to xyz files
molecule = plams.Molecule('path/to/molecule.xyz') # or as plams.Molecule objects
molecule.guess_bonds()
with Screen() as scr:
scr.draw_molecule(molecule)
To load and draw the HOMO:
from yutility import orbitals
from tcviewer import Screen, materials
import pathlib
rkf_dir = pathlib.Path(__file__).parents[0]/'data'/'NH3BH3'
# load orbitals and choose an MO to draw
orbs = orbitals.Orbitals(rkf_dir/'adf.rkf')
homo = orbs.mos['HOMO']
# generate a cube file
cub = homo.generate_orbital()
with Screen() as scr:
scr.draw_cub(cub, 0.03, material=materials.orbital_matte)
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 TCviewer-0.1.10.tar.gz.
File metadata
- Download URL: TCviewer-0.1.10.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39fbbef0035ca142f8f8801aecad525d666783842d8b56504110784f487a8bcd
|
|
| MD5 |
7fc2bdfffa562d4e22f9e338fccc371e
|
|
| BLAKE2b-256 |
b1c20de950f790455dcf41f830a528afb07973ac99b5bb935e04993a16badd04
|
Provenance
The following attestation bundles were made for TCviewer-0.1.10.tar.gz:
Publisher:
pypi_publish.yml on TheoChem-VU/TCviewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
TCviewer-0.1.10.tar.gz -
Subject digest:
39fbbef0035ca142f8f8801aecad525d666783842d8b56504110784f487a8bcd - Sigstore transparency entry: 601207106
- Sigstore integration time:
-
Permalink:
TheoChem-VU/TCviewer@0d5739a997bb876a80e3c0a8fabf98ded040a6db -
Branch / Tag:
refs/tags/v0.1.10 - Owner: https://github.com/TheoChem-VU
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@0d5739a997bb876a80e3c0a8fabf98ded040a6db -
Trigger Event:
release
-
Statement type:
File details
Details for the file TCviewer-0.1.10-py3-none-any.whl.
File metadata
- Download URL: TCviewer-0.1.10-py3-none-any.whl
- Upload date:
- Size: 14.7 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 |
ce25eecf2dd4300a73174391914f245e06b2ad30ada01a0bc0651788a18393dd
|
|
| MD5 |
8f5e51b9820d57ab6331212a78665950
|
|
| BLAKE2b-256 |
7cb10ecbdc090047f5dfef983e15ef443a7d06eb2c787bae28e7cb04dc9cfb8c
|
Provenance
The following attestation bundles were made for TCviewer-0.1.10-py3-none-any.whl:
Publisher:
pypi_publish.yml on TheoChem-VU/TCviewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
TCviewer-0.1.10-py3-none-any.whl -
Subject digest:
ce25eecf2dd4300a73174391914f245e06b2ad30ada01a0bc0651788a18393dd - Sigstore transparency entry: 601207107
- Sigstore integration time:
-
Permalink:
TheoChem-VU/TCviewer@0d5739a997bb876a80e3c0a8fabf98ded040a6db -
Branch / Tag:
refs/tags/v0.1.10 - Owner: https://github.com/TheoChem-VU
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@0d5739a997bb876a80e3c0a8fabf98ded040a6db -
Trigger Event:
release
-
Statement type: