Skip to content

Commit 8fe4872

Browse files
Update coldcollapse.py
1 parent 1360c44 commit 8fe4872

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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, coldPlummer
7+
from tools.icbuilder import coldPlummer, save
88

9-
coldPlummer(1000, scale=1.0, mass=1.0)
10-
save(coldcollapse.txt)
9+
particles = coldPlummer(1000, scale=1.0, mass=1.0)
10+
save("coldcollapse.txt", particles)

0 commit comments

Comments
 (0)