We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fe4872 commit f6c441eCopy full SHA for f6c441e
examples/GalaxyDemo/galaxy.py
@@ -1,10 +1,10 @@
1
import os, sys
2
+
3
root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
4
if root not in sys.path:
-
5
sys.path.insert(0, root)
6
7
-from tools.icbuilder import particleAdd, save, disk
+from tools.icbuilder import disk, save
8
9
-disk(20000, radius=0.5, mass=1.0, thickness=0.2)
10
-save("galaxy.txt")
+particles = disk(20000, radius=0.5, mass=1.0, thickness=0.2)
+save("galaxy.txt", particles)
0 commit comments