Skip to main content
Help us improve Python packaging – donate today!

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.

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 2.1.3:
  • In set_value, if first item is non-int, treat as None-indexed
  • Refine value string heuristic for strings with ints in them?
For 2.2.0:
  • Add Sphinx docs.
  • Preserve 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:
  • Identify HERWIG decay matrix element to use in ISAWIG
  • Handle RPV SUSY in ISAWIG

Release history Release notifications

History Node

3.2.1

History Node

3.2.0

History Node

3.1.2

History Node

3.1.1

History Node

3.1.0

History Node

3.0.4

History Node

3.0.3

History Node

3.0.2

History Node

3.0.2a0

History Node

3.0.1

History Node

3.0.1a0

History Node

3.0.0

History Node

2.1.3

This version
History Node

2.1.2

History Node

2.1.1

History Node

2.1.0

History Node

2.0.0

History Node

1.5.0

History Node

1.4.4

History Node

1.4.3

History Node

1.4.2

History Node

1.4.1

History Node

1.4.0

History Node

1.3.3

History Node

1.3.2

History Node

1.3.1

History Node

1.3.0

History Node

1.2.9

History Node

1.2.8

History Node

1.2.7

History Node

1.2.5

History Node

1.2.4

History Node

1.2.3

History Node

1.2.2

History Node

1.2.1

History Node

1.2.0

History Node

1.1.0

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

History Node

0.6.1

History Node

0.6.0

History Node

0.5.1

History Node

0.5.0

History Node

0.4.4

History Node

0.4.3

History Node

0.4.1

History Node

0.4.0

History Node

0.3.0

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pyslha-2.1.2.tar.gz (41.9 kB) Copy SHA256 hash SHA256 Source None May 31, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page