Open wbinek opened 7 years ago
Thanks for the report, it seems that this class has not survived the transition from boost python to swig. I will looking at it.
Thanks. I found that I can go around it using Gabe_rw.ReadCol() and array objects from libsimpa.
I've changed the ToList() method in init file to:
def ToList(self):
"""
Retourne les données sous forme de listes python
"""
lstret=[]
for idcol in range(0,self.size()):
lstret.append([ self.GetColTitle(idcol)] + list(self.Index(idcol)))
return lstret
setattr(Gabe_rw,"ToList",ToList)
This works fine, but float values are truncated. I think it not a problem as usually such high precision isn't needed. I couldn't figure out how to use GetTabTypes() mehtod as it returned only pointers to gabe_io::COLTYPE *
.
I wrote GabeToCsv script based on the example. It supports both file and folder processing. https://github.com/d-cooper/I-Simpa/commit/3d8c86bc1430e4b1e019df1a3e25a0f021fe8233 and https://github.com/d-cooper/I-Simpa/commit/fed54742b69843a726d4c9283bbbfde8c9292130
I've tried running script spps_conversion_resultats.py script (from python_bindings/samples) but I have problem with Gabe_rw.ToList mehod. It returns:
I've tried it both on mine and yours build.