Skip to content

Commit f6c441e

Browse files
Update galaxy.py
1 parent 8fe4872 commit f6c441e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/GalaxyDemo/galaxy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import os, sys
2+
23
root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
34
if root not in sys.path:
4-
55
sys.path.insert(0, root)
66

7-
from tools.icbuilder import particleAdd, save, disk
7+
from tools.icbuilder import disk, save
88

9-
disk(20000, radius=0.5, mass=1.0, thickness=0.2)
10-
save("galaxy.txt")
9+
particles = disk(20000, radius=0.5, mass=1.0, thickness=0.2)
10+
save("galaxy.txt", particles)

0 commit comments

Comments
 (0)