Commit d90b352d authored by David Hrbáč's avatar David Hrbáč

Fixes it4i-admins/docs.it4i#51

parent e153f3ad
......@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
import csv
import collections
from distutils.version import LooseVersion
def get_data(filename):
'''function to read the data form the input csv file to use in the analysis'''
......@@ -65,11 +66,12 @@ for m,i in sorted(counts.items()):
for m in sorted(software.items(), key=lambda i: i[0].lower()):
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()))
versions = []
clusters = []
for key in sorted(m[1], key=LooseVersion ):
versions.append(key)
clusters.append(m[1][key])
print "| %s | %s | %s |" % (software, '</br>'.join(versions), '</br>'.join(clusters))
print
print '---8<--- "modules_matrix_search.md"'
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