Skip to content

Commit a0bf356

Browse files
committed
adjust radius
1 parent f4d43ba commit a0bf356

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

crystal_toolkit/renderables/migrationgraph.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
from turtle import pos
2-
import numpy as np
3-
41
from pymatgen.analysis.diffusion.neb.full_path_mapper import MigrationGraph
5-
from crystal_toolkit.core.scene import Scene, Cylinders
2+
3+
from crystal_toolkit.core.scene import Cylinders, Scene
4+
65

76
def get_migrationgraph_scene(
87
self,
@@ -19,13 +18,19 @@ def get_migrationgraph_scene(
1918
result_scene = self.structure.get_scene()
2019
hop_contents = []
2120
for one_hop in self.unique_hops.values():
22-
hop_cyl = Cylinders(positionPairs=[[list(one_hop["ipos_cart"]), list(one_hop["epos_cart"])]], radius=0.2, visible=True)
21+
hop_cyl = Cylinders(
22+
positionPairs=[[list(one_hop["ipos_cart"]), list(one_hop["epos_cart"])]],
23+
radius=0.25,
24+
)
2325
hop_contents.append(hop_cyl)
2426

2527
result_scene.contents.append(
26-
Scene(name="hops", origin=result_scene.contents[0].origin, contents=hop_contents)
28+
Scene(
29+
name="hops", origin=result_scene.contents[0].origin, contents=hop_contents
30+
)
2731
)
2832
print(result_scene.contents[-1])
2933
return result_scene
3034

31-
MigrationGraph.get_scene = get_migrationgraph_scene
35+
36+
MigrationGraph.get_scene = get_migrationgraph_scene

0 commit comments

Comments
 (0)