Giter VIP home page Giter VIP logo

yaslha's Introduction

Build Status Coverage Status Typecheck Status Doc Status PyPI version License: MIT Code style: black

yaslha: Yet Another SLHA module for Python3

A Python3 package to manipulate SLHA files and convert them to other file formats (JSON and YAML).

Quick Start

(TBW)

Introduction

The SUSY Les Houches Accord is a data format widely used in particle physics phenomenology. It is originally defined in arXiv:hep-ph/0311123 and extended to SLHA2 in arXiv:0801.0045.

Because of its birth in FORTRAN era it is a fixed length format such as

BLOCK SMINPUTS                  # Standard Model input parameters
     1     1.27934000e+02   # alpha_em^-1(M_Z)^MSbar
     2     1.16637000e-05   # G_F [GeV^-2]
     3     1.17200000e-01   # alpha_S(M_Z)^MSbar
     4     9.11876000e+01   # mZ (pole)
     5     4.18000000e+00   # mb(mb)^MSbar
     6     1.73300000e+02   # mt (pole)
     7     1.77682000e+00   # mtau (pole)
#
BLOCK ALPHA                    #
          -2.68630018e-02   # Higgs mixing parameter
#
BLOCK HMIX Q= 2.00000000e+02   # Higgs parameters (DRbar)
     1     5.40000000e+02   # mu(Q)
     2     4.00000000e+01   # tanbeta(Q)
     3     2.46220569e+02   # vev(Q)
     4     2.30400000e+05   # mA^2(Q)
#
...

and extended in many program codes.

Python has two famous SLHA parser: PySLHA by Andy Buckley and pylha by David M. Straub. yaslha is "yet another" SLHA parser, influenced much by these two parsers.

Python regrettably experienced a terrible era due to the transition from Python2 to Python3. To reduce code complexity, this package supports only Python3.4 and later versions.

Usage

(TBW)

Author

Sho Iwamoto / Misho, under much influence from PySLHA by Andy Buckley and pylha by David M. Straub.

yaslha's People

Contributors

misho104 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

yaslha's Issues

Error due to an invalid SDECAY output

The invalid output from SDECAY

BLOCK GAUGE Q=  2.00000000E+02  # The gauge couplings
     1     3.58003249E-01   # gprime(Q) DRbar
     2     6.48434966E-01   # g(Q) DRbar
    3   # g3(Q) DRbar depends on the scale Q = mass of the decaying particle

causes

  File "yaslha/core.py", line 28, in dump
    return dumper.dump(self)
  File "yaslha/dumper.py", line 137, in dump
    for block in self._blocks_sorted(slha)]
  File "yaslha/dumper.py", line 137, in <listcomp>
    for block in self._blocks_sorted(slha)]
  File "yaslha/dumper.py", line 172, in dump_block
    body, key_order = self._block_lines_with_key_order(block)
  File "yaslha/dumper.py", line 85, in _block_lines_with_key_order
    keys.sort()
TypeError: '<' not supported between instances of 'NoneType' and 'int'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.