Commit b82eb165 authored by David Hrbáč's avatar David Hrbáč
Browse files

Module matrix refactored

parent 6003b83f
Pipeline #1670 passed with stages
in 59 seconds
......@@ -36,10 +36,30 @@ c=[
"USA",
]
print "| Module | Clusters |"
print "| ------ | -------- |"
print "| Module | Versions | Clusters |"
print "| ------ | -------- | -------- |"
software = dict()
versions = ''
clusters = ''
prev = ''
for m,i in sorted(counts.items()):
print "| %s | ``%s`` |" % (m,c[i])
split = m.split('/')
if len(split) > 1:
a = split[0]
b = split[1]
if split[0] <> prev:
software[a] = {}
software[a][b] = c[i]
prev = a
#print software.items()
for m in sorted(software.items()):
software = m[0]
versions = ''
clusters = ''
#print '</br>'.join(m[1].keys())
#print '</br>'.join(m[1].values())
print "| %s | %s | %s |" % (software, '</br>'.join(m[1].keys()), '</br>'.join(m[1].values()))
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment