]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Room service always here to clean-up. Thanks a lot.
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 25 Jan 2018 14:57:26 +0000 (15:57 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 25 Jan 2018 14:57:26 +0000 (15:57 +0100)
src/MEDLoader/Swig/CaseReader.py
src/MEDLoader/Swig/SauvLoaderTest.py

index cacc7c58bcf229eded19b424eecf354a3acfe0f4..4801c93cb686adf55ead2f50ada34ec847da4d8f 100644 (file)
@@ -370,7 +370,7 @@ class CaseReader(CaseIO):
             if "TIME\n" in lines:
                 end=lines.index("TIME\n")
                 pass
-            for i in xrange(ind + 1,end):
+            for i in range(ind + 1,end):
                 m=re.match("^([\w]+)[\s]+\per[\s]+([\w]+)[\s]*\:[\s]*[0-9]*[\s]*([\w]+)[\s]+([\S]+)$",lines[i])
                 if m:
                     if m.groups()[0]=="constant":
index 44c1ef682958b1816753a7993527094deb69ea87..f9454b1b183c3fd765b2805dcdbe4b0db599178d 100644 (file)
@@ -254,13 +254,13 @@ class SauvLoaderTest(unittest.TestCase):
         nb_segs = [100, 100, 100]
         box_sizes = [1., 1., 1.]
         compo_names = ["x", "y", "z"]
-        box_steps = [box_sizes[i]/nb_segs[i] for i in xrange(mesh_dim)]
+        box_steps = [box_sizes[i]/nb_segs[i] for i in range(mesh_dim)]
         mesh = MEDCouplingCMesh.New("Mesh_box")
 
         # axes coords
         axes_arrays = []
-        for i in xrange(mesh_dim):
-          axe_coords = [j*box_steps[i] for j in xrange(nb_segs[i]+1)]
+        for i in range(mesh_dim):
+          axe_coords = [j*box_steps[i] for j in range(nb_segs[i]+1)]
 
           axe_arr = DataArrayDouble.New(axe_coords)
           axe_arr.setInfoOnComponent(0,compo_names[i])