Skip to main content

No project description provided

Project description

zincware PyPI version DOI codecov 'Threejs

ZnDraw

Install via pip install zndraw. If you have pip install pywebview installed, ZnDraw will open in a dedicated window.

CLI

You can use ZnDraw to view a file using the CLI zndraw traj.xyz. Supported file formats include everything that ase.io can read and additionally h5 files in the H5MD standard.

If you want to view the frames while they are added to the scene you can use zndraw -mp traj.xyz. See zndraw --help for more CLI options.

Python

ZnDraw provides a Python interface. The zndraw.ZnDraw object offers append, extend as well as assignment operations. More information is available in the example notebook.

from zndraw import ZnDraw
import ase

zndraw = ZnDraw()

zndraw.socket.sleep(2) # give it some time to fully connect
zndraw[0] = ase.Atoms(
  "H2O", positions=[[0.75, -0.75, 0], [0.75, 0.75, 0], [0, 0, 0]]
  )

User Interface

ZnDraw UI

ZnDraw UI3

Development

ZnDraw is developed using https://python-poetry.org/. Furthermore, the javascript packages have to be installed using https://www.npmjs.com/.

cd zndraw/static/
npm install

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

zndraw-0.2.1.tar.gz (17.7 MB view details)

Uploaded Source

Built Distribution

zndraw-0.2.1-py3-none-any.whl (20.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zndraw-0.2.1.tar.gz
  • Upload date:
  • Size: 17.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Windows/10

File hashes

Hashes for zndraw-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2b3e4675d83e650b314555b6cceb7445ff1518c23ae1ae33d56a6a397938f8d7
MD5 d6edf9942f5f527f0318a7dcef4faef0
BLAKE2b-256 8b11d4404ccaecfddd0ca54e0d30d3975b564c2efd003e63ab4be54b8eadb89d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zndraw-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 20.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Windows/10

File hashes

Hashes for zndraw-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1aeb1d1c1f800eca0eb2b56a2a91f6098f06b99d5d02cc81193d9e82402c040
MD5 60adc587cbab67adc50c4af9d7a34e8c
BLAKE2b-256 5b9464434d73cc25d9934d0a74f6566d85962d427dfa7fa248ed85acbf01b363

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page