Salome HOME
Fix tests to use the right field index cbr/fix_fields_pv580
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Tue, 20 Oct 2020 14:33:20 +0000 (16:33 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Tue, 20 Oct 2020 14:33:20 +0000 (16:33 +0200)
src/MEDCalc/test/tui/deflection_shape.py
src/MEDCalc/test/tui/vector_field.py

index 96da7b31ff95e9d821ee100fbe2ae6ae1149ad82..2536e3da060d95a949faa9bb40b3c7a65acb8cea 100644 (file)
@@ -33,7 +33,7 @@ source_id = medcalc.LoadDataSource(datafile)
 
 # For "beton_arme_30_officiel.med", field 7 = __DEPL__ (NODES)
 # For "deplacements", field 0 = DEP1 (NODES)
-presentation_id = medcalc.MakeDeflectionShape(accessField(7), viewMode=MEDCALC.VIEW_MODE_REPLACE, 
+presentation_id = medcalc.MakeDeflectionShape(accessField(0), viewMode=MEDCALC.VIEW_MODE_REPLACE,
                                           colorMap=MEDCALC.COLOR_MAP_BLUE_TO_RED_RAINBOW,
                                           scalarBarRange=MEDCALC.SCALAR_BAR_CURRENT_TIMESTEP
                                           )
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
                                           )