Lufia wrote:
Now we add the path to pytel to be able to import the modules. You will have to change the path (PathToPytel).
sys.path.append(path.join( path.dirname(sys.argv[0]), \
'/PathToPytel/opentelemac/v6p2/pytel'))
from utils.files import getFileContent
from parsers.parserSortie import getValueHistorySortie
from parsers.parserSELAFIN import SELAFIN,getValueHistorySLF,parseSLF,\
crossLocateMeshSLF,xyLocateMeshSLF,\
getValuePolylineSLF,subsetVariablesSLF
from parsers.parserStrings import parseArrayPaires
Concerning the quote above, my compiler throws import errors on the following items
1.
from parsers.parserSortie import getValueHistorySortie
which should be
from parsers.parserSortie import Sortie
since getValueHistorySortie is a 'method' in the class Sortie and not a standalone function. However, I don't see that this method is called afterwards anyhow.
2.
from parsers.parserSELAFIN import parseSLF,crossLocateMeshSLF,xyLocateMeshSLF
since these functions are missing in the document <your telemac directory>/scripts./python27/parsers/parserSELAFIN.py
Hence I assume that these invocations can be removed safely. Experts please confirm/reject.
Working with Telemac scripts v7p2r0. NB: the path
/PathToPytel/opentelemac/v6p2/pytel/ does not exist any longer in the tree of the Telemac system and that directory is currently called
<your telemac installation directory>/scripts/python27/