pyslha.py

changeset 240
84b1c74e0020
parent 239
42f74a1e96cf
child 241
401d5e64948f
     1.1 --- a/pyslha.py	Mon Jul 15 13:24:37 2013 +0200
     1.2 +++ b/pyslha.py	Mon Jul 15 14:26:47 2013 +0200
     1.3 @@ -34,7 +34,7 @@
     1.4  TODOs:
     1.5  
     1.6    For 2.1.3:
     1.7 -   * Fix kwargs passing from read/write*File to read/write*
     1.8 +   * Allow ignoring of missing MASS block in SLHA reader
     1.9  
    1.10    For 2.1.4:
    1.11     * In set_value, if first item is non-int, treat as None-indexed
    1.12 @@ -1098,7 +1098,7 @@
    1.13      Other keyword parameters are passed to readSLHA.
    1.14      """
    1.15      f = open(spcfilename, "r")
    1.16 -    rtn = readSLHA(f.read(), kwargs)
    1.17 +    rtn = readSLHA(f.read(), **kwargs)
    1.18      f.close()
    1.19      return rtn
    1.20  
    1.21 @@ -1110,7 +1110,7 @@
    1.22      Other keyword parameters are passed to writeSLHA.
    1.23      """
    1.24      f = open(spcfilename, "w")
    1.25 -    f.write(writeSLHA(blocks, decays, kwargs))
    1.26 +    f.write(writeSLHA(blocks, decays, **kwargs))
    1.27      f.close()
    1.28  
    1.29  
    1.30 @@ -1124,7 +1124,7 @@
    1.31      Other keyword parameters are passed to readSLHA.
    1.32      """
    1.33      f = open(isafilename, "r")
    1.34 -    rtn = readISAWIG(f.read(), kwargs)
    1.35 +    rtn = readISAWIG(f.read(), **kwargs)
    1.36      f.close()
    1.37      return rtn
    1.38  
    1.39 @@ -1136,7 +1136,7 @@
    1.40      Other keyword parameters are passed to writeISAWIG.
    1.41      """
    1.42      f = open(isafilename, "w")
    1.43 -    f.write(writeISAWIG(blocks, decays, kwargs))
    1.44 +    f.write(writeISAWIG(blocks, decays, **kwargs))
    1.45      f.close()
    1.46  
    1.47  

mercurial