slhaplot

changeset 120
bffefe12df80
parent 116
e63729bbb044
child 121
402d6abf64b7
     1.1 --- a/slhaplot	Sat Feb 26 02:27:08 2011 +0100
     1.2 +++ b/slhaplot	Sat Feb 26 23:21:12 2011 +0100
     1.3 @@ -145,9 +145,9 @@
     1.4                    "comma-separated list, and 'shift' vertically shifts the clashing labels to avoid "
     1.5                    "collisions (default: %default)",
     1.6                    dest="PARTICLES_LABELS", default="shift")
     1.7 -parser.add_option("--show-gravitino", action="store_true",
     1.8 -                  help="show the gravitino if available",
     1.9 -                  dest="SHOW_GRAVITINO", default=False)
    1.10 +# parser.add_option("--hide-gravitino", action="store_false",
    1.11 +#                   help="hide the gravitino",
    1.12 +#                   dest="SHOW_GRAVITINO", default=False)
    1.13  
    1.14  
    1.15  ## Run parser and sort out a few resulting details
    1.16 @@ -156,8 +156,8 @@
    1.17  opts.PARTICLES_LABELS_MERGE = (opts.PARTICLES_LABELS == "merge")
    1.18  opts.PARTICLES_LABELS_SHIFT = (opts.PARTICLES_LABELS == "shift")
    1.19  #
    1.20 -if not opts.SHOW_GRAVITINO:
    1.21 -    del PDETAILS[1000039]
    1.22 +# if not opts.SHOW_GRAVITINO:
    1.23 +#     del PDETAILS[1000039]
    1.24  #
    1.25  if opts.DECAYS_MINBR.endswith("%"):
    1.26      opts.DECAYS_MINBR = float(opts.DECAYS_MINBR[:-1]) / 100
    1.27 @@ -217,7 +217,7 @@
    1.28                      if PDETAILS.has_key(pid2):
    1.29                          xyto = (PDETAILS[pid2].xedges.centre, PDETAILS[pid2].mass)
    1.30                          DDETAILS[pid][pid2] = DecayDetails(pid, xyfrom, pid2, xyto, d.br)
    1.31 -    if not DDETAILS[pid]:
    1.32 +    if DDETAILS.has_key(pid) and not DDETAILS[pid]:
    1.33          del DDETAILS[pid]
    1.34  
    1.35  

mercurial