• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisãoc4a1fc32a49e7ba640e0ac956efc711abecfbafe (tree)
Hora2008-11-13 03:30:02
Autoriselllo
Commiteriselllo

Mensagem de Log

I added a code useful to rearrange the simulation output in a way suitable for plotting.

Mudança Sumário

Diff

diff -r 7c096a566aff -r c4a1fc32a49e Python-codes/reorder.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Python-codes/reorder.py Wed Nov 12 18:30:02 2008 +0000
@@ -0,0 +1,19 @@
1+#! /usr/bin/env python
2+
3+import scipy as s
4+import numpy as n
5+import pylab as p
6+
7+ini_arr=p.load("cluster_50_monomers.dat")
8+
9+box_size=(5000./0.01)**(1./3.)
10+
11+ini_arr=s.remainder(ini_arr,box_size)
12+
13+ini_arr=s.reshape(ini_arr,(-1,3))
14+
15+p.save("cluster_50.dat", ini_arr)
16+
17+
18+
19+print "So far so good"