Salome HOME
Updated copyright comment
[modules/med.git] / src / MEDCalc / test / tui / deflection_shape.py
index 3c718687c646b86b0739c5e52eebf95e98c4da40..93e1f6d223701a85ba744a5476f975f4b93784bb 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2016  CEA/DEN, EDF R&D
+# Copyright (C) 2016-2024  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -28,9 +28,12 @@ from medcalc.medconsole import accessField
 from medcalc_testutils import GetMEDFileDirTUI
 
 datafile = os.path.join(GetMEDFileDirTUI(), "deplacements.med")
+#datafile = os.path.join(GetMEDFileDirTUI(), "/home/ab205030/beton_arme_30_officiel.med")
 source_id = medcalc.LoadDataSource(datafile)
 
-presentation_id = medcalc.MakeDeflectionShape(accessField(0), viewMode=MEDCALC.VIEW_MODE_REPLACE, 
+# For "beton_arme_30_officiel.med", field 7 = __DEPL__ (NODES)
+# For "deplacements", field 0 = DEP1 (NODES)
+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
                                           )