From be8ad6f36a850c685bd5f12bfad0e29fdc52bad8 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Tue, 20 Oct 2020 16:33:20 +0200 Subject: [PATCH] Fix tests to use the right field index --- src/MEDCalc/test/tui/deflection_shape.py | 2 +- src/MEDCalc/test/tui/vector_field.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.39.2