From 6367b1d475c3e0d878ef2b84b679a0a48054e689 Mon Sep 17 00:00:00 2001
From: pierre <ratinaud@univ-tlse2.fr>
Date: Tue, 25 Jan 2022 10:24:11 +0100
Subject: [PATCH] correction

---
 tabchi2.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tabchi2.py b/tabchi2.py
index 11922b3..8d6f208 100755
--- a/tabchi2.py
+++ b/tabchi2.py
@@ -143,13 +143,13 @@ class ChiSquare(AnalyseMatrix):
         cont<-1
         """%(ffr(self.tableau.parametres['csvfile']), self.tableau.parametres['syscoding'])
         if len(self.colsel1)==1:
-            strsel1=str(self.colsel1).replace(',','')
+            strsel1=str(tuple(self.colsel1)).replace(',','')
         else:
-            strsel1=str(self.colsel1)
+            strsel1=str(tuple(self.colsel1))
         if len(self.colsel2)==1:
-            strsel2=str(self.colsel2).replace(',','')
+            strsel2=str(tuple(self.colsel2)).replace(',','')
         else:
-            strsel2=str(self.colsel2)
+            strsel2=str(tuple(self.colsel2))
         txt+="""
         for (i in c%s) {""" % strsel1
         txt+="""
-- 
2.7.4