Salome HOME
Fix tests to use the right field index
[modules/med.git] / src / MEDCalc / test / tui / vector_field.py
index 19c2c6df3a62defc2f53098ea3781eec3021f892..9b83a20fca8d5f223c1a9170c5aa3622cc3f60f9 100644 (file)
@@ -31,7 +31,7 @@ datafile = os.path.join(GetMEDFileDirTUI(), "agitateur.med")
 source_id = medcalc.LoadDataSource(datafile)
 
 # Field 55 = VITESSE_ELEM_DOM (ON_CELLS)
-presentation_id = medcalc.MakeVectorField(accessField(57), viewMode=MEDCALC.VIEW_MODE_REPLACE, 
+presentation_id = medcalc.MakeVectorField(accessField(55), viewMode=MEDCALC.VIEW_MODE_REPLACE,
                                           colorMap=MEDCALC.COLOR_MAP_BLUE_TO_RED_RAINBOW,
                                           scalarBarRange=MEDCALC.SCALAR_BAR_CURRENT_TIMESTEP
                                           )