No project description provided
Project description
ZnDraw
Install via pip install zndraw
.
CLI
You can use ZnDraw with the CLI zndraw atoms.xyz
.
For a full list of arguments use zndraw --help
.
To interface with zndraw --update-function module.function
you need to be able to import via from module import function
.
The ZnDraw function expects as inputs
- atom_ids: list[int], the ids of the currently selected atoms
- atoms: ase.Atoms, the configuration as
ase.Atoms
file where atom_ids where selected.
and as an output:
- list[ase.Atoms], a list of ase Atoms objects to display.
def function(atom_ids: list[int], atoms: ase.Atoms) -> list[ase.Atoms]|Generator[ase.Atoms, None, None]:
...
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.1.2.tar.gz
(28.3 kB
view details)
Built Distribution
zndraw-0.1.2-py3-none-any.whl
(28.6 kB
view details)
File details
Details for the file zndraw-0.1.2.tar.gz
.
File metadata
- Download URL: zndraw-0.1.2.tar.gz
- Upload date:
- Size: 28.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.8 Linux/5.19.0-38-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0da9097bbbb0c8eac9f94861d8b07d68f9c857aba93ef7492e9e6d1578719ac2 |
|
MD5 | adf0c8f11092493b2b364bc4e993a320 |
|
BLAKE2b-256 | 44ffcbca7df108dffdfd5c3c2e74ecdf30ca816382301e2090c3870955e49f82 |
File details
Details for the file zndraw-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: zndraw-0.1.2-py3-none-any.whl
- Upload date:
- Size: 28.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.8 Linux/5.19.0-38-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74dd604493e205fce86eff7cdb2bec0ea3707ffcf9bc49ea6828ff0ee28bfe96 |
|
MD5 | 19211865eecc3f7f7a5ae667c27bb7b1 |
|
BLAKE2b-256 | 023e105ae80d259842d69127a54bd689733216087f68616bba5f9637b5ce0319 |