Repository 'marea'
hg clone https://toolshed.g2.bx.psu.edu/repos/bimib/marea

Changeset 61:69dfed656e0b (2020-03-15)
Previous changeset 60:ecc24ecafa11 (2020-03-15) Next changeset 62:ce8534417470 (2020-03-15)
Commit message:
Uploaded
modified:
Marea/marea.py
b
diff -r ecc24ecafa11 -r 69dfed656e0b Marea/marea.py
--- a/Marea/marea.py Sun Mar 15 12:04:49 2020 -0400
+++ b/Marea/marea.py Sun Mar 15 12:26:26 2020 -0400
b
@@ -636,7 +636,6 @@
 
     if comparison == "manyvsmany":
         for i, j in it.combinations(class_pat.keys(), 2):
-            
             tmp = {}
             count = 0
             max_F_C = 0
@@ -672,10 +671,6 @@
                         renderPDF.drawToFile(svg2rlg(file_svg), file_pdf)
                     
                     if not create_svg:
-                        #Ho utilizzato il file svg per generare il pdf, 
-                        #ma l'utente non ne ha richiesto il ritorno, quindi
-                        #lo elimino
-                        
                         os.remove('result/' + i + '_vs_' + j + ' (SVG Map).svg')
     elif comparison == "onevsrest":
         for single_cluster in class_pat.keys():
@@ -726,6 +721,10 @@
                         
     elif comparison == "onevsmany":
         for i, j in it.combinations(class_pat.keys(), 2):
+            if i != control and j != control:
+                continue
+            if i == control and j == control:
+                continue
             tmp = {}
             count = 0
             max_F_C = 0
@@ -761,10 +760,6 @@
                         renderPDF.drawToFile(svg2rlg(file_svg), file_pdf)
                     
                     if not create_svg:
-                        #Ho utilizzato il file svg per generare il pdf, 
-                        #ma l'utente non ne ha richiesto il ritorno, quindi
-                        #lo elimino
-                        
                         os.remove('result/' + i + '_vs_' + j + ' (SVG Map).svg')