From: Christophe Bourcier Date: Tue, 20 Oct 2020 14:33:20 +0000 (+0200) Subject: Fix tests to use the right field index X-Git-Tag: V9_6_0rc1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fcbr%2Ffix_fields_pv580;p=modules%2Fmed.git Fix tests to use the right field index --- diff --git a/src/MEDCalc/test/tui/deflection_shape.py b/src/MEDCalc/test/tui/deflection_shape.py index 96da7b31f..2536e3da0 100644 --- a/src/MEDCalc/test/tui/deflection_shape.py +++ b/src/MEDCalc/test/tui/deflection_shape.py @@ -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 ) diff --git a/src/MEDCalc/test/tui/vector_field.py b/src/MEDCalc/test/tui/vector_field.py index 19c2c6df3..9b83a20fc 100644 --- a/src/MEDCalc/test/tui/vector_field.py +++ b/src/MEDCalc/test/tui/vector_field.py @@ -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 )