Skip to content

Commit f25b55e

Browse files
authored
ZnDraw v0.1.0
* threejs initial commit * add callbacks * clean up * update * add lights * update callbacks * update * allow animations * animations * improve animations * add animate cli * add configs * add max fps * select function * update selection * updates * add new routes * use new route * performance * zndraw * ZnDraw v0.1.0
1 parent 0187578 commit f25b55e

File tree

11 files changed

+662
-445
lines changed

11 files changed

+662
-445
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
11
[![zincware](https://img.shields.io/badge/Powered%20by-zincware-darkcyan)](https://github.com/zincware)
22

3-
# ZnDraw
3+
# ZnDraw
4+
5+
Install via ``pip install zndraw``.
6+
7+
## CLI
8+
9+
You can use ZnDraw with the CLI ``zndraw atoms.xyz``.
10+
For a full list of arguments use `zndraw --help`.
11+
12+
To interface with ``zndraw --update-function module.function`` you need to be able to import via ``from module import function``.
13+
14+
The ZnDraw function expects as inputs
15+
- atom_ids: list[int], the ids of the currently selected atoms
16+
- atoms: ase.Atoms, the configuration as `ase.Atoms` file where atom_ids where selected.
17+
and as an output:
18+
- list[ase.Atoms], a list of ase Atoms objects to display.
19+
20+
```python
21+
def function(atom_ids: list[int], atoms: ase.Atoms) -> list[ase.Atoms]:
22+
...
23+
```

poetry.lock

Lines changed: 7 additions & 192 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ readme = "README.md"
88

99
[tool.poetry.dependencies]
1010
python = "^3.10"
11-
dash = "^2.9.2"
1211
ase = "^3.22.1"
13-
pandas = "^2.0.0"
1412
networkx = "^3.1"
1513
typer = "^0.7.0"
14+
flask = "^2.2.3"
1615

1716
[tool.poetry.group.dev.dependencies]
1817
black = "^23.3.0"
@@ -24,4 +23,4 @@ requires = ["poetry-core"]
2423
build-backend = "poetry.core.masonry.api"
2524

2625
[tool.poetry.scripts]
27-
zndraw = 'zndraw.cli:app'
26+
zndraw = 'zndraw.cli:cli'

zndraw/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from zndraw.app import app
2+
3+
__all__ = ["app"]

0 commit comments

Comments
 (0)