[med-svn] [Git][med-team/community/debian-med-flyer][master] 2 commits: Do wordcloud based on "vote" instead of "install"

Andreas Tille gitlab at salsa.debian.org
Mon Nov 18 21:22:12 GMT 2019



Andreas Tille pushed to branch master at Debian Med / community / debian-med-flyer


Commits:
c709069b by Andreas Tille at 2019-11-18T21:14:37Z
Do wordcloud based on "vote" instead of "install"

- - - - -
a21402ed by Andreas Tille at 2019-11-18T21:21:52Z
Some more tweaking

- - - - -


2 changed files:

- debian-med-wordcloud.py
- packagecloud.png


Changes:

=====================================
debian-med-wordcloud.py
=====================================
@@ -33,11 +33,14 @@ renaming = {
 }
 
 multiplier = {
-    'clustalo': 4,
-    'clustalw': 0.5,
-    'cwltool': 4,
-    'gdcm': 0.2,
-    'qiime' : 4,
+    'clustalo' : 2,
+    'clustalw' : 0.5,
+    'cwltool'  : 4,
+    'dcmtk'    : 0.5,
+    'gdcm'     : 0.5,
+    'orthanc'  : 0.5,
+    'qiime'    : 4 ,
+    'xmedcon'  : 0.2
 }
 
 packages = {}
@@ -59,11 +62,12 @@ for t in med_tasks:
         srcname = pt.source_name
         maint = pt.record['maintainer']
         if 'med' in maint or srcname in other:
-            pp = popcon.package(name)
+            # pp = popcon.package(name) # that's "install"
+            pp = popcon.package_raw(name)
             srcname = renaming.get(srcname, srcname)
             tt.setdefault(srcname, 0)
 #            tt[srcname] = max(pp[name], tt[srcname])
-            tt[srcname] += pp[name] * multiplier.get(srcname, 1)
+            tt[srcname] += pp[name].vote * multiplier.get(srcname, 1)
 
 
 frequencies = {}


=====================================
packagecloud.png
=====================================
Binary files a/packagecloud.png and b/packagecloud.png differ



View it on GitLab: https://salsa.debian.org/med-team/community/debian-med-flyer/compare/fc8d705b3d2162967006766cf482cbc41493414a...a21402ed6593ddd3d1b16fc5e5da61b738ded305

-- 
View it on GitLab: https://salsa.debian.org/med-team/community/debian-med-flyer/compare/fc8d705b3d2162967006766cf482cbc41493414a...a21402ed6593ddd3d1b16fc5e5da61b738ded305
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20191118/e509046c/attachment-0001.html>


More information about the debian-med-commit mailing list