lhapdf

view mkindex @ 1110:2ba52dbf2312

Add release instructions for new sets
author Andy Buckley <andy@insectnation.org>
date Tue, 17 Oct 2017 17:12:04 +0100
parents 0195cc097598
children
line source
1 #! /usr/bin/env python
2 # -*- python -*-
4 import lhapdf
5 lhapdf.setVerbosity(0)
7 sets = []
8 for s in lhapdf.availablePDFSets():
9 i = lhapdf.getPDFSet(s)
10 sets.append([i.lhapdfID, i.name, i.dataversion])
11 for id, name, version in sorted(sets):
12 if id > 0:
13 print("%d %s %d" % (id,name,version))
14 else:
15 import sys
16 sys.stderr.write("Invalid set ID: %d %s %d\n" % (id,name,version))