remd plot all ex with multiplexing
authorCezary Czaplewski <czarek@chem.univ.gda.pl>
Sat, 26 Aug 2017 10:43:17 +0000 (12:43 +0200)
committerCezary Czaplewski <czarek@chem.univ.gda.pl>
Sat, 26 Aug 2017 11:15:20 +0000 (13:15 +0200)
django_simple/todo/jobfiles.py
files/matplotlib_hist.py

index 048e030..3fc077f 100644 (file)
@@ -245,7 +245,7 @@ CUTOFF=7.00000 WCORR4=0.00000
            f2.write(line.replace('#PBS -l nodes=4:ppn=4', pbs))
           else:
            tmp1=json.loads(instance.remd_multi_t)
-           f2.write(line.replace('$temperatures','"'+" ".join(tmp1)+'"'))
+           f2.write(line.replace('$temperatures','"'+" ".join(tmp1)+'" '+str(nreplicas)))
       f1.close()
       f2.close()
       os.chdir('..')  
index cf08458..7bbf4e9 100755 (executable)
@@ -59,7 +59,8 @@ plt.clf()
 plt.ylabel('bath temperature [K]')
 plt.xlabel('step*replica')
 
-replica=range(len(Tremd))
+replica=range(int(sys.argv[2]))
+colors = cm.rainbow(np.linspace(0, 1, len(replica)))
 for i,c in zip(replica,colors):
  yt=x[r==i]
  xt=(s+r*max(s))[r==i]