add file configuration in order to choice the pca's columns
authorpancaldi.paolo <devnull@localhost>
Mon, 9 Mar 2009 15:33:21 +0000 (15:33 +0000)
committerpancaldi.paolo <devnull@localhost>
Mon, 9 Mar 2009 15:33:21 +0000 (15:33 +0000)
pcluster.py

index d5d23f76e20a317a44217367596952b30e8fd43e..530104dec4bfa19170d53fd8c006d7c75397e15c 100644 (file)
@@ -304,6 +304,11 @@ class pclusterCommands:
         (c)Paolo Pancaldi, Massimo Sandal 2009
         '''
         
+        # reads the columns of pca
+        conf=open("pca_config.txt")
+        config = conf.readlines()
+        conf.close()
+        
         self.pca_myArray = []
         self.pca_paths = {}
         plot_path_temp = ""
@@ -344,7 +349,8 @@ class pclusterCommands:
                         #row = row[0], row[2], row[3], row[6], row[7], row[8]
                         #row= row[0], row[1], row[2], row[3], row[6], row[7], row[8], row[9], row[10], row[11]
                         #row= row[6], row[7], row[8], row[9]
-                        row= row[1],row[3], row[10], row[11], row[6], row[7], row[8], row[9]
+                        #row= row[1], row[3], row[6], row[7], row[8], row[9], row[10], row[11]*10
+                        row = eval(config[0])
                         self.pca_myArray.append(row)
                         nPlotGood = nPlotGood+1