Salome HOME
updated copyright message
[modules/med.git] / doc / tut / medloader / testamel.py
index 819aca01a3485653911e76a9ff61db117bded8ba..5f7cc23b33357e773219493d5337287637ce4e34 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2012-2015  CEA/DEN, EDF R&D
+# Copyright (C) 2012-2023  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -25,7 +25,7 @@
 #
 # (gboulant, nov. 2012)
 from MEDLoader import *
-from MEDCoupling import *
+from medcoupling import *
 
 import os
 filename = "timeseries.med"
@@ -33,7 +33,7 @@ filepath = os.path.join(os.path.abspath(os.path.dirname(__file__)),filename)
 
 rmedfilename = filepath
 
-# Load the meshe data
+# Load the mesh data
 meshname = "Grid_80x80"
 fieldname = "Pulse"
 dimrestriction = 0 # no restriction
@@ -65,4 +65,4 @@ fieldOnNodes.setMesh(msource)
 x=0.5
 y=0.5
 fieldValue = fieldOnNodes.getValueOn([x,y])
-print fieldValue
+print(fieldValue)