X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=files%2Ffluct_plot.py;h=609ca4db6ec64fc88e6040a9a99577c8cef5b3dc;hb=161801e60a4b6ac75ee8704dfb2d508e513cfa66;hp=8d6e214b0b8882520d36acb92128eb5da4ed4876;hpb=c5a3f68a04860ca673130d123abb99c886e6705d;p=django_unres.git diff --git a/files/fluct_plot.py b/files/fluct_plot.py index 8d6e214..609ca4d 100755 --- a/files/fluct_plot.py +++ b/files/fluct_plot.py @@ -49,13 +49,15 @@ for i in range(1,natom+1): y.append(fluct) b=[] +ires='' if os.path.exists('plik.pdb'): with open('plik.pdb') as f: for line in f: if line[0:4]=='ATOM' and line[13:15]=='CA': # print line + if ires=='' or int(line[22:26])>ires: b.append(math.sqrt(float(line[60:66])*3/8/math.pi/math.pi)) - + ires=int(line[22:26]) plt.xlabel('residue')