[Blends-commit] [SCM] website branch, master, updated. e0bf9a9c393db2ca4c770313c929d4d8b0c4f4b8
Andreas Tille
tille at debian.org
Fri Aug 14 17:46:48 UTC 2015
The following commit has been merged in the master branch:
commit e0bf9a9c393db2ca4c770313c929d4d8b0c4f4b8
Author: Andreas Tille <tille at debian.org>
Date: Fri Aug 14 19:46:14 2015 +0200
Enable suppressing tasks in 3D output
diff --git a/misc/team_analysis_tools/count-dependencies.py b/misc/team_analysis_tools/count-dependencies.py
index 803538f..84b4432 100755
--- a/misc/team_analysis_tools/count-dependencies.py
+++ b/misc/team_analysis_tools/count-dependencies.py
@@ -28,8 +28,12 @@ DRAWTASKS = { 'med': ['bio', 'bio-dev', 'epi', 'practice', 'psychology'],
'science': ['chemistry'], # ['astronomy'], # 'dataacquisition', 'distributedcomputing', 'electronics', 'engineering'],
'debichem': [ 'abinitio', 'cheminformatics', 'modelling', 'molmech', 'polymer', 'semiempirical', 'view-edit-2d', 'visualisation' ],
}
+SUPPRESSTASKS = { 'med': [ 'cloud' ],
+ 'science' : [],
+ 'debichem' : [],
+ }
-def TasksGetDrawList(tasks, checklist):
+def TasksGetDrawList(tasks, checklist, avoidlist):
try:
task_last = tasks[sorted(tasks.keys())[-1]]
except IndexError, err:
@@ -45,7 +49,8 @@ def TasksGetDrawList(tasks, checklist):
min2draw = task_last.nrecommended[t]
for r in task_last.recommends.keys():
if task_last.nrecommended[r] >= min2draw:
- drawlist.append(r)
+ if r not in avoidlist:
+ drawlist.append(r)
drawlist.sort()
return drawlist
@@ -200,7 +205,7 @@ def main():
exit()
tasks_found.sort()
- drawlist = TasksGetDrawList(tasks, DRAWTASKS[BLEND])
+ drawlist = TasksGetDrawList(tasks, DRAWTASKS[BLEND], SUPPRESSTASKS[BLEND])
if debug > 0:
print drawlist
--
Static and dynamic websites for Debian Pure Blends
More information about the Blends-commit
mailing list