From: Anthony Geay Date: Thu, 30 Aug 2018 12:06:41 +0000 (+0200) Subject: Correction of error during Py3 porting X-Git-Tag: V9_1_0~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=960c2de6be3f5cc8fb69a1c35f70c8bad7a61f9e;p=tools%2Fmedcoupling.git Correction of error during Py3 porting --- diff --git a/src/MEDLoader/Swig/CaseWriter.py b/src/MEDLoader/Swig/CaseWriter.py index b29f44be2..c8f4f74a3 100644 --- a/src/MEDLoader/Swig/CaseWriter.py +++ b/src/MEDLoader/Swig/CaseWriter.py @@ -158,7 +158,7 @@ time values: typ=MEDCouplingMesh.GetCorrespondingPolyType(typ) pass mp=m[i:i+nbelem] - mm.write(self.__str80(self.dictMCTyp[typ])) + mm.write(self.__str80(self.dictMCTyp_str[typ])) a=np.memmap(f,dtype='int32',mode='w+',offset=mm.tell(),shape=(1,)) a[0]=nbelem ; a.flush() ; mm.seek(mm.tell()+4) if typ!=NORM_POLYHED and typ!=NORM_POLYGON: @@ -270,7 +270,7 @@ time values: if typ==curTyp: arr=ff.getUndergroundDataArray()[bg:end].changeNbOfComponents(nbCompo,0.) ; arr=arr.toNoInterlace() if typ==ON_CELLS: - mm.write(self.__str80(self.dictMCTyp[geo])) + mm.write(self.__str80(self.dictMCTyp_str[geo])) pass elif typ==ON_NODES: mm.write(self.__str80("coordinates"))