Skip to content

Commit 6f7801b

Browse files
Add example
1 parent 7613bd2 commit 6f7801b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

examples/GalaxyDemo/galaxy.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import os, sys
2+
root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
3+
if root not in sys.path:
4+
5+
sys.path.insert(0, root)
6+
7+
from tools.icbuilder import particleAdd, save, plummer
8+
9+
plummer(1000)
10+
save("galaxy.txt")

0 commit comments

Comments
 (0)