summaryrefslogtreecommitdiff
path: root/python/test/simple_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/test/simple_test.py')
-rw-r--r--python/test/simple_test.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/python/test/simple_test.py b/python/test/simple_test.py
new file mode 100644
index 0000000..e2919c6
--- /dev/null
+++ b/python/test/simple_test.py
@@ -0,0 +1,22 @@
+import multired as mr
+import sys
+
+
+if len(sys.argv) < 2:
+ print "Usage: %s <layer_list>" % sys.argv[0]
+ sys.exit(1)
+
+print "Loading layers...",
+m = mr.multiplex_red(sys.argv[1], verbose=True)
+print "[DONE]"
+
+print "Getting partitons...",
+part = m.compute_partitions()
+print "[DONE]"
+
+print "Partitions:..."
+m.dump_partitions()
+
+m.draw_dendrogram()
+
+