Skip to main content

Parsing, manipulating, and visualising SUSY Les Houches Accord data

Project description

A simple but flexible handler of the SUSY Les Houches Accord (SLHA) data format.

pyslha is a parser/writer module for particle physics SUSY Les Houches Accord (SLHA) supersymmetric spectrum/decay files, and a collection of scripts which use the interface, e.g. for conversion to and from the legacy ISAWIG format, or to plot the mass spectrum and decay chains.

The current release supports SLHA version 1, and as far as I’m aware is also fully compatible with SLHA2: the block structures are read and accessed generically. If you have any problems, please provide an example input file and I’ll happily investigate. SLHA3 is not yet supported (or standardised) but in recent releases the new structures will not crash the parser. Support will be added once the format is standardised (and in response to demand!)

The plotting script provides output in PDF, EPS and PNG via LaTeX and the TikZ graphics package, and as LaTeX/TikZ source for direct embedding into documents or user-tweaking of the generated output.

Users of version 1.x should note that the interface has changed a little in version 2.0.0 and onward, in particular in the interface of the Block objects, which are now more dict-like: entries can be added and accessed via the usual square-brackets indexing operators, including for multiple indices as is common for mixing matrices e.g. NMIX[1,2] as opposed to the old NMIX.entries[1][2] way. This does break backward compatibility but is a big improvement both for internal code sanity and usability. The Block interface also now supplies dict-like has_key(), keys(), and items() methods, as well as more specialist value(), set_value() and is_single_valued() methods for improved access to ALPHA and any other unindexed blocks.

If you use PySLHA, for either model data handling or spectrum visualisation, please cite the paper: http://arxiv.org/abs/1305.4194

TODOs:

For 3.0.x:
  • Add handling of XSECTION if/when standardised.

  • In set_value, if first item is non-int, treat as None-indexed.

  • Refine value string heuristic for strings with ints in them?

  • Use Doc to handle document-level header comments.

  • Add block and decay summary comments to the OrderedDict (wrap OrderedDict as DataStore?)

For 3.1.x:
  • Preserve inline comments from read -> write (needs full-line/inline comment separation). Can use separate comment dicts in Block and Decay, and attach a multiline .comment attr to the returned/written dicts.

Later/maybe:
  • Add Sphinx docs.

  • Identify HERWIG decay matrix element to use in ISAWIG.

  • Handle RPV SUSY in ISAWIG.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyslha-3.0.0.tar.gz (43.8 kB view details)

Uploaded Source

File details

Details for the file pyslha-3.0.0.tar.gz.

File metadata

  • Download URL: pyslha-3.0.0.tar.gz
  • Upload date:
  • Size: 43.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyslha-3.0.0.tar.gz
Algorithm Hash digest
SHA256 1bec55e7b6fc3240a854ebeb6e073422f2ea9b5049c59a6560f3828bb601b040
MD5 e58750160aa69d01430ea48af9331543
BLAKE2b-256 9dd702554645907a91cd50e4f4135b3d67125f5ce70749a7eabf941abcbfe597

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page