Removing .entries usage from slhaplot

Sun, 28 Apr 2013 22:18:00 +0200

author
Andy Buckley <andy@insectnation.org>
date
Sun, 28 Apr 2013 22:18:00 +0200
changeset 206
6e091122c7d5
parent 205
536967068fe2
child 207
2990422f1738

Removing .entries usage from slhaplot

slhaplot file | annotate | diff | comparison | revisions
     1.1 --- a/slhaplot	Sun Apr 28 22:17:25 2013 +0200
     1.2 +++ b/slhaplot	Sun Apr 28 22:18:00 2013 +0200
     1.3 @@ -305,8 +305,8 @@
     1.4      ## Set mass values in PDETAILS
     1.5      massblock = BLOCKS["MASS"]
     1.6      for pid in PDETAILS.keys():
     1.7 -        if massblock.entries.has_key(pid) and abs(massblock.entries[pid]) < opts.MAXMASS:
     1.8 -            PDETAILS[pid].mass = abs(massblock.entries[pid])
     1.9 +        if massblock.has_key(pid) and abs(massblock[pid]) < opts.MAXMASS:
    1.10 +            PDETAILS[pid].mass = abs(massblock[pid])
    1.11          else:
    1.12              del PDETAILS[pid]
    1.13  

mercurial