Skip to content

Commit 8ad0a9d

Browse files
committed
adding docker os comparison image
1 parent 0faee3e commit 8ad0a9d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
53.2 KB
Loading

examples/package_tree/plot_similarity.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# A quick example of making a package tree with data derived from calculate_similarity.py
2+
# Set environment variable MESSAGELEVEL to CRITICAL to disable debug output
23

34
from singularity.views.trees import make_package_tree
5+
from singularity.analysis.compare import compare_packages
6+
from singularity.analysis.utils import get_packages
47

58
# Compare your own data
69
data = pickle.load(open('comparisons.pkl','rb'))['files.txt']
@@ -10,7 +13,7 @@
1013
package_set1 = get_packages(family='docker-os')
1114
package_set2 = get_packages(family='docker-os')
1215
data = compare_packages(packages_set1=package_set1,
13-
packages_set2=packge_set2)['files.txt']
16+
packages_set2=package_set2)['files.txt']
1417

1518
plt = make_package_tree(matrix=data)
1619

0 commit comments

Comments
 (0)