[Blends-commit] [SCM] website branch, master, updated. 05bccf857d1e9f9b46efdfcbbabf6e54ea7fc6c7

Andreas Tille tille at debian.org
Tue Aug 6 19:47:16 UTC 2013


The following commit has been merged in the master branch:
commit 42dea8da6c30a51e1e4d21831b9191f15a03210e
Author: Andreas Tille <tille at debian.org>
Date:   Tue Aug 6 10:21:57 2013 +0200

    Try to graph DebiChem as well but there seems to be trouble in finding the according tasts

diff --git a/misc/team_analysis_tools/count-dependencies.py b/misc/team_analysis_tools/count-dependencies.py
index 2f28067..48809f3 100755
--- a/misc/team_analysis_tools/count-dependencies.py
+++ b/misc/team_analysis_tools/count-dependencies.py
@@ -25,15 +25,22 @@ debug=0
 # Make sure we are drawing a certain selection and all those tasks that might
 # have more dependencies than these
 DRAWTASKS = { 'med': ['bio', 'bio-dev', 'epi', 'practice', 'psychology'],
-              'science': ['astronomy', 'dataacquisition', 'distributedcomputing', 'electronics', 'engineering'], 
+              'science': ['chemistry'], # ['astronomy'],   # 'dataacquisition', 'distributedcomputing', 'electronics', 'engineering'], 
+              'debichem': [ 'abinitio', 'cheminformatics', 'modelling', 'molmech', 'polymer', 'semiempirical', 'view-edit-2d', 'visualisation' ],
             }
 
 def TasksGetDrawList(tasks, checklist):
-    task_last = tasks[sorted(tasks.keys())[-1]]
+    try:
+        task_last = tasks[sorted(tasks.keys())[-1]]
+    except IndexError, err:
+	print >>stderr, err
+	print >>stderr, "tasks.keys() =", tasks.keys()
+	exit()
     # evaluate minimum number of dependencies to draw
     min2draw = 100
     drawlist = []
     for t in checklist:
+        print t, task_last.nrecommended[t]
 	if task_last.nrecommended[t] < min2draw:
 	    min2draw = task_last.nrecommended[t]
     for r in task_last.recommends.keys():
@@ -188,9 +195,14 @@ def main():
     	        except:
     		    pkg = None
 
+    if not tasks_found:
+        print >>stderr, "No tasks found for Blend %s." % BLEND
+        exit()
     tasks_found.sort()
 
     drawlist = TasksGetDrawList(tasks, DRAWTASKS[BLEND])
+    if debug > 0:
+        print drawlist
 
     cNorm  = colors.Normalize(vmin=0, vmax=len(drawlist))
     jet = plt.get_cmap('jet')

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list