From 3d1040b6a8551b29af992debcbada4dedc4506fb Mon Sep 17 00:00:00 2001 From: "pancaldi.paolo" Date: Mon, 9 Mar 2009 15:33:21 +0000 Subject: [PATCH] add file configuration in order to choice the pca's columns --- pcluster.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.26.2