From: pancaldi.paolo Date: Mon, 9 Mar 2009 15:33:21 +0000 (+0000) Subject: add file configuration in order to choice the pca's columns X-Git-Tag: 0.9.0~27 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b7b17c2ab3a486ffa9fa7f6fc2b631d456212dce;p=hooke.git add file configuration in order to choice the pca's columns --- diff --git a/pcluster.py b/pcluster.py index d5d23f7..530104d 100644 --- a/pcluster.py +++ b/pcluster.py @@ -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