We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1360c44 commit 8fe4872Copy full SHA for 8fe4872
1 file changed
examples/ColdCollapseGalaxy/coldcollapse.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, coldPlummer
+from tools.icbuilder import coldPlummer, save
8
9
-coldPlummer(1000, scale=1.0, mass=1.0)
10
-save(coldcollapse.txt)
+particles = coldPlummer(1000, scale=1.0, mass=1.0)
+save("coldcollapse.txt", particles)
0 commit comments