"""
Définit les outils généraux élémentaires.
-
- Ce module est destiné à être appelée par AssimilationStudy.
"""
__author__ = "Jean-Philippe ARGAUD"
__all__ = []
"Permet de lancer le calcul d'assimilation"
if FileName is None or not os.path.exists(FileName):
raise ValueError("a YACS file name has to be given for YACS execution.\n")
+ else:
+ __file = os.path.abspath(FileName)
+ logging.debug("The YACS file name is \"%s\"."%__file)
if not PlatformInfo.has_salome or \
not PlatformInfo.has_yacs or \
not PlatformInfo.has_adao:
xmlLoader = loader.YACSLoader()
xmlLoader.registerProcCataLoader()
try:
- catalogAd = r.loadCatalog("proc", os.path.abspath(FileName))
+ catalogAd = r.loadCatalog("proc", __file)
r.addCatalog(catalogAd)
except:
pass
try:
- p = xmlLoader.load(os.path.abspath(FileName))
+ p = xmlLoader.load(__file)
except IOError as ex:
print("The YACS XML schema file can not be loaded: %s"%(ex,))
self.__logSerie = []
self.__switchoff = False
self.__viewers = {
- "TUI":Interfaces._TUIViewer,
- "DCT":Interfaces._DCTViewer,
- "SCD":Interfaces._SCDViewer,
+ "TUI" :Interfaces._TUIViewer,
+ "SCD" :Interfaces._SCDViewer,
"YACS":Interfaces._YACSViewer,
}
self.__loaders = {
- "TUI":Interfaces._TUIViewer,
- "DCT":Interfaces._DCTViewer,
- "EPD":Interfaces._EPDViewer,
- "COM":Interfaces._COMViewer,
+ "TUI" :Interfaces._TUIViewer,
+ "COM" :Interfaces._COMViewer,
}
if __addViewers is not None:
self.__viewers.update(dict(__addViewers))