Skip to content

Commit 0b3d44f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5537ae6 commit 0b3d44f

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

crystal_toolkit/apps/examples/chgcar.py

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
1-
#%%
1+
# %%
22
from __future__ import annotations
33

44
import dash
55
from dash import html
6-
from pymatgen.core import Lattice, Structure
7-
8-
import crystal_toolkit
9-
import crystal_toolkit.components as ctc
10-
from crystal_toolkit.settings import SETTINGS
116
from dash_mp_components import CrystalToolkitScene
127
from pymatgen.io.vasp import Chgcar
138

9+
import crystal_toolkit.components as ctc
10+
from crystal_toolkit.settings import SETTINGS
1411

1512
app = dash.Dash(assets_folder=SETTINGS.ASSETS_PATH)
1613

1714
chgcar = Chgcar.from_file("../../../tests/test_files/chgcar.vasp")
1815
scene = chgcar.get_scene(isolvl=0.0001)
1916

2017
layout = html.Div(
21-
[CrystalToolkitScene(data=scene.to_json())],
22-
style={"width": "100px", "height": "100px"},
23-
)
24-
#%%
18+
[CrystalToolkitScene(data=scene.to_json())],
19+
style={"width": "100px", "height": "100px"},
20+
)
21+
# %%
2522
# as explained in "preamble" section in documentation
2623
ctc.register_crystal_toolkit(app=app, layout=layout)
2724

0 commit comments

Comments
 (0)