Salome HOME
Updated copyright comment
[modules/med.git] / src / MEDCalc / test / tui / mesh_view.py
index 6f4f7f5f897e345c92a00d08a948e75357591e86..94bfe69c24f5ad37d6ff09f0e64890894520fe55 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
@@ -30,7 +30,7 @@ from medcalc_testutils import GetMEDFileDirTUI
 datafile = os.path.join(GetMEDFileDirTUI(), "smooth_surface_and_field.med")
 source_id = medcalc.LoadDataSource(datafile)
 
-presentation_id = medcalc.MakeMeshView(accessField(0), MEDCALC.VIEW_MODE_REPLACE)
+presentation_id = medcalc.MakeMeshView(0, MEDCALC.VIEW_MODE_REPLACE)  # here the ID of the mesh directly
 sleep(1)
 medcalc.RemovePresentation(presentation_id)
 sleep(1)