--- /dev/null
+# -*- coding: utf-8 -*-
+
+# --------------------------------------------------
+# debut entete
+# --------------------------------------------------
+
+import Accas
+from Accas import *
+
+
+#CONTEXT.debug = 1
+JdC = JDC_CATA ( code = 'OPENTURNS_WRAPPER',
+ execmodul = None,
+ regles = ( AU_MOINS_UN ( 'WRAPPER' ), ),
+ ) # Fin JDC_CATA
+
+# --------------------------------------------------
+# fin entete
+# --------------------------------------------------
+
+
+#================================
+# 2. Definition des variables
+#================================
+
+VARIABLEPOOL = PROC ( nom = "VARIABLEPOOL",
+ op = None,
+ docu = "",
+ fr = "L'ensemble des variables probabilistes",
+ ang = "The pool of probabilistic variables",
+
+
+ Variables = FACT ( statut = "o",
+ min = 1,
+ max = "**",
+
+
+
+ Name = SIMP ( statut = "o",
+ typ = "TXM",
+ max = 1,
+ fr = "Nom de la variable, identique au nom dans le solver.",
+ ang = "Name of the variable, identical to the name in solver."
+ ),
+
+ Type = SIMP ( statut = "o",
+ typ = "TXM",
+ max = 1,
+ into = ( "in", "out", ),
+ defaut = "in",
+ fr = "variable d'entree ou de sortie du solver",
+ ang = "Input or Output variable",
+ ),
+
+ Unit = SIMP ( statut = "f",
+ typ = "TXM",
+ max = 1,
+ fr = "Unite",
+ ang = "Unit",
+ ),
+
+ Comment = SIMP ( statut = "f",
+ typ = "TXM",
+ max = 1,
+ fr = "Commentaire",
+ ang = "Comment",
+ ),
+
+ Regexp = SIMP ( statut = "f",
+ typ = "TXM",
+ max = 1,
+ fr = "Expression reguliere",
+ ang = "Regular expression",
+ ),
+
+ Format = SIMP ( statut = "f",
+ typ = "TXM",
+ max = 1,
+ fr = "Format d'ecriture",
+ ang = "Format",
+ ),
+
+
+ ), # Fin FACT Variables
+
+) # Fin PROC VARIABLEPOOL
+
+
+#================================
+# Definition des parametres du wrapper
+#================================
+
+# Nota : les variables de type PROC doivent etre en majuscules !
+WRAPPER = PROC ( nom = "WRAPPER",
+ op = None,
+ docu = "",
+ fr = "Mise en donnee pour le fichier de configuration de OPENTURNS.",
+ ang = "Writes the configuration file for OPENTURNS.",
+
+
+ WrapperPath = SIMP ( statut = "o",
+ typ = "TXM",
+ max = 1,
+ fr = "Chemin d acces au wrapper",
+ ang = "Wrapper library path",
+ ),
+
+ FunctionName = SIMP ( statut = "o",
+ typ = "TXM",
+ max = 1,
+ fr = "Nom de la fonction dans le wrapper",
+ ang = "Function's name in wrapper",
+ ),
+
+ GradientName = SIMP ( statut = "f",
+ typ = "TXM",
+ max = 1,
+ fr = "Nom du gradient dans le wrapper",
+ ang = "Gradient's name in wrapper",
+ ),
+
+ HessianName = SIMP ( statut = "f",
+ typ = "TXM",
+ max = 1,
+ fr = "Nom du hessian dans le wrapper",
+ ang = "Hessian's name in wrapper",
+ ),
+
+ WrapCouplingMode = SIMP ( statut = "o",
+ typ = "TXM",
+ max = 1,
+ into = ( "static-link", "dynamic-link", "fork", ),
+ fr = "Mode de couplage du solver",
+ ang = "Solver coupling mode",
+ ),
+
+ Fork = BLOC ( condition = " WrapCouplingMode in ( 'fork', ) ",
+
+ Command = SIMP ( statut = "o",
+ max = 1,
+ typ = "TXM",
+ fr = "Chemin du solver",
+ ang = "solver path",
+ ),
+ ), # Fin BLOC Fork
+
+ State = SIMP ( statut = "f",
+ typ = "TXM",
+ max = 1,
+ into = ( "shared", "specific" ),
+ fr = "Partage de l'etat interne entre les fonctions",
+ ang = "Internal state sharing",
+ ),
+
+ InDataTransfer = SIMP ( statut = "o",
+ typ = "TXM",
+ max = 1,
+ into = ( "files", "arguments", ),
+ fr = "Mode de transfert des donnees d'entree",
+ ang = "Input transfering mode",
+ ),
+
+ OutDataTransfer = SIMP ( statut = "o",
+ typ = "TXM",
+ max = 1,
+ into = ( "files", "arguments", ),
+ fr = "Mode de transfert des donnees de sortie",
+ ang = "Output transfering mode",
+ ),
+
+
+
+
+ Files = FACT ( statut = "f",
+ min = 1,
+ max = "**",
+
+ Id = SIMP ( statut = "o",
+ typ = "TXM",
+ max = 1,
+ fr = "Identificateur du fichier",
+ ang = "File id",
+ ),
+
+ Type = SIMP ( statut = "o",
+ typ = "TXM",
+ max = 1,
+ into = ( "in", "out", ),
+ fr = "Fichier d entree ou de sortie du solveur ?",
+ ang = "Input or Output file ?",
+ ),
+
+ Name = SIMP ( statut = "f",
+ typ = "TXM",
+ max = 1,
+ fr = "Nom du fichier",
+ ang = "File name",
+ ),
+
+ Path = SIMP ( statut = "o",
+ typ = "TXM",
+ max = 1,
+ fr = "Chemin du fichier",
+ ang = "Path file ",
+ ),
+
+ Subst = SIMP ( statut = "f",
+ typ = "TXM",
+ max = "**",
+ fr = "Liste de variables",
+ ang = "List",
+ ),
+
+ ), # Fin FACT Files
+
+) # Fin PROC WRAPPER
+++ /dev/null
-# -*- coding: utf-8 -*-
-
-# --------------------------------------------------
-# debut entete
-# --------------------------------------------------
-
-import Accas
-from Accas import *
-
-
-#CONTEXT.debug = 1
-JdC = JDC_CATA ( code = 'OPENTURNS_WRAPPER',
- execmodul = None,
- regles = ( AU_MOINS_UN ( 'WRAPPER' ), ),
- ) # Fin JDC_CATA
-
-# --------------------------------------------------
-# fin entete
-# --------------------------------------------------
-
-
-#================================
-# 2. Definition des variables
-#================================
-
-VARIABLEPOOL = PROC ( nom = "VARIABLEPOOL",
- op = None,
- docu = "",
- fr = "L'ensemble des variables probabilistes",
- ang = "The pool of probabilistic variables",
-
-
- Variables = FACT ( statut = "o",
- min = 1,
- max = "**",
-
-
-
- Name = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- fr = "Nom de la variable, identique au nom dans le solver.",
- ang = "Name of the variable, identical to the name in solver."
- ),
-
- Type = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- into = ( "in", "out", ),
- defaut = "in",
- fr = "variable d'entree ou de sortie du solver",
- ang = "Input or Output variable",
- ),
-
- Unit = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- fr = "Unite",
- ang = "Unit",
- ),
-
- Comment = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- fr = "Commentaire",
- ang = "Comment",
- ),
-
- Regexp = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- fr = "Expression reguliere",
- ang = "Regular expression",
- ),
-
- Format = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- fr = "Format d'ecriture",
- ang = "Format",
- ),
-
-
- ), # Fin FACT Variables
-
-) # Fin PROC VARIABLEPOOL
-
-
-#================================
-# Definition des parametres du wrapper
-#================================
-
-# Nota : les variables de type PROC doivent etre en majuscules !
-WRAPPER = PROC ( nom = "WRAPPER",
- op = None,
- docu = "",
- fr = "Mise en donnee pour le fichier de configuration de OPENTURNS.",
- ang = "Writes the configuration file for OPENTURNS.",
-
-
- WrapperPath = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- fr = "Chemin d acces au wrapper",
- ang = "Wrapper library path",
- ),
-
- FunctionName = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- fr = "Nom de la fonction dans le wrapper",
- ang = "Function's name in wrapper",
- ),
-
- GradientName = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- fr = "Nom du gradient dans le wrapper",
- ang = "Gradient's name in wrapper",
- ),
-
- HessianName = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- fr = "Nom du hessian dans le wrapper",
- ang = "Hessian's name in wrapper",
- ),
-
- WrapCouplingMode = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- into = ( "static-link", "dynamic-link", "fork", ),
- fr = "Mode de couplage du solver",
- ang = "Solver coupling mode",
- ),
-
- Fork = BLOC ( condition = " WrapCouplingMode in ( 'fork', ) ",
-
- Command = SIMP ( statut = "o",
- max = 1,
- typ = "TXM",
- fr = "Chemin du solver",
- ang = "solver path",
- ),
- ), # Fin BLOC Fork
-
- State = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- into = ( "shared", "specific" ),
- fr = "Partage de l'etat interne entre les fonctions",
- ang = "Internal state sharing",
- ),
-
- InDataTransfer = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- into = ( "files", "arguments", ),
- fr = "Mode de transfert des donnees d'entree",
- ang = "Input transfering mode",
- ),
-
- OutDataTransfer = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- into = ( "files", "arguments", ),
- fr = "Mode de transfert des donnees de sortie",
- ang = "Output transfering mode",
- ),
-
-
-
-
- Files = FACT ( statut = "f",
- min = 1,
- max = "**",
-
- Id = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- fr = "Identificateur du fichier",
- ang = "File id",
- ),
-
- Type = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- into = ( "in", "out", ),
- fr = "Fichier d entree ou de sortie du solveur ?",
- ang = "Input or Output file ?",
- ),
-
- Name = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- fr = "Nom du fichier",
- ang = "File name",
- ),
-
- Path = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- fr = "Chemin du fichier",
- ang = "Path file ",
- ),
-
- Subst = SIMP ( statut = "f",
- typ = "TXM",
- max = "**",
- fr = "Liste de variables",
- ang = "List",
- ),
-
- ), # Fin FACT Files
-
-) # Fin PROC WRAPPER
+++ /dev/null
-# -*- coding: utf-8 -*-
-
-# --------------------------------------------------
-# debut entete
-# --------------------------------------------------
-
-import Accas
-from Accas import *
-
-
-#CONTEXT.debug = 1
-JdC = JDC_CATA ( code = 'OPENTURNS_WRAPPER',
- execmodul = None,
- regles = ( AU_MOINS_UN ( 'WRAPPER' ), ),
- ) # Fin JDC_CATA
-
-# --------------------------------------------------
-# fin entete
-# --------------------------------------------------
-
-
-#================================
-# 2. Definition des variables
-#================================
-
-VARIABLEPOOL = PROC ( nom = "VARIABLEPOOL",
- op = None,
- docu = "",
- fr = "L'ensemble des variables probabilistes",
- ang = "The pool of probabilistic variables",
-
-
- Variables = FACT ( statut = "o",
- min = 1,
- max = "**",
-
-
-
- Name = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- fr = "Nom de la variable, identique au nom dans le solver.",
- ang = "Name of the variable, identical to the name in solver."
- ),
-
- Type = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- into = ( "in", "out", ),
- defaut = "in",
- fr = "variable d'entree ou de sortie du solver",
- ang = "Input or Output variable",
- ),
-
- Unit = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- fr = "Unite",
- ang = "Unit",
- ),
-
- Comment = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- fr = "Commentaire",
- ang = "Comment",
- ),
-
- Regexp = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- fr = "Expression reguliere",
- ang = "Regular expression",
- ),
-
- Format = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- fr = "Format d'ecriture",
- ang = "Format",
- ),
-
-
- ), # Fin FACT Variables
-
-) # Fin PROC VARIABLEPOOL
-
-
-#================================
-# Definition des parametres du wrapper
-#================================
-
-# Nota : les variables de type PROC doivent etre en majuscules !
-WRAPPER = PROC ( nom = "WRAPPER",
- op = None,
- docu = "",
- fr = "Mise en donnee pour le fichier de configuration de OPENTURNS.",
- ang = "Writes the configuration file for OPENTURNS.",
-
-
- WrapperPath = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- fr = "Chemin d acces au wrapper",
- ang = "Wrapper library path",
- ),
-
- FunctionName = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- fr = "Nom de la fonction dans le wrapper",
- ang = "Function's name in wrapper",
- ),
-
- GradientName = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- fr = "Nom du gradient dans le wrapper",
- ang = "Gradient's name in wrapper",
- ),
-
- HessianName = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- fr = "Nom du hessian dans le wrapper",
- ang = "Hessian's name in wrapper",
- ),
-
- WrapCouplingMode = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- into = ( "static-link", "dynamic-link", "fork", ),
- defaut = "fork",
- fr = "Mode de couplage du solver",
- ang = "Solver coupling mode",
- ),
-
- Fork = BLOC ( condition = " WrapCouplingMode in ( 'fork', ) ",
-
- Command = SIMP ( statut = "o",
- max = 1,
- typ = "TXM",
- fr = "Chemin du solver",
- ang = "solver path",
- ),
- ), # Fin BLOC Fork
-
- State = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- into = ( "shared", "specific" ),
- fr = "Partage de l'etat interne entre les fonctions",
- ang = "Internal state sharing",
- ),
-
- InDataTransfer = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- into = ( "files", "arguments", ),
- fr = "Mode de transfert des donnees d'entree",
- ang = "Input transfering mode",
- ),
-
- OutDataTransfer = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- into = ( "files", "arguments", ),
- fr = "Mode de transfert des donnees de sortie",
- ang = "Output transfering mode",
- ),
-
-
-
-
- Files = FACT ( statut = "f",
- min = 1,
- max = "**",
-
- Id = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- fr = "Identificateur du fichier",
- ang = "File id",
- ),
-
- Type = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- into = ( "in", "out", ),
- fr = "Fichier d entree ou de sortie du solveur ?",
- ang = "Input or Output file ?",
- ),
-
- Name = SIMP ( statut = "f",
- typ = "TXM",
- max = 1,
- fr = "Nom du fichier",
- ang = "File name",
- ),
-
- Path = SIMP ( statut = "o",
- typ = "TXM",
- max = 1,
- fr = "Chemin du fichier",
- ang = "Path file ",
- ),
-
- Subst = SIMP ( statut = "f",
- typ = "TXM",
- max = "**",
- fr = "Liste de variables",
- ang = "List",
- ),
-
- ), # Fin FACT Files
-
-) # Fin PROC WRAPPER
catalogues = (
# (code,version,catalogue,formatIn,formatOut)
#('OPENTURNS_WRAPPER','V1',os.path.join(rep_cata,'OpenTURNS_Cata_Wrapper_V1.py'),'openturns_wrapper','wrapper'),
- ('OPENTURNS_WRAPPER','V2',os.path.join(rep_cata,'OpenTURNS_Cata_Wrapper_V2.py'),'openturns','wrapper'),
+ ('OPENTURNS_STUDY','V1',os.path.join(rep_cata,'OpenTURNS_Cata_Study.py'),'openturns_study','wrapper'),
#('OPENTURNS','Wrapper',os.path.join(rep_cata,'OpenTURNS_Cata_Wrapper_V1.py'),'openturns'),
)
self.repIni = repIni
self.fic_prefs ="prefs.py"
- if self.appli: self.parent=appli.top
+ if self.appli:
+ self.parent=appli.top
+ self.appli.format_fichier="openturns_wrapper"
else: self.parent=None
- self.labels=("DTDDirectory","rep_user","INSTALLDIR","path_doc","exec_acrobat","rep_cata","initialdir")
+ self.labels=("OpenTURNS_path","rep_user","INSTALLDIR","path_doc","exec_acrobat","rep_cata","initialdir","savedir")
# Valeurs par defaut
self.rep_user = os.path.join(os.environ['HOME'],'.Eficas_Openturns')
self.initialdir = self.rep_user
self.path_doc = self.rep_user
+ self.savedir = self.rep_user
self.exec_acrobat = self.rep_user
#Lecture des fichiers utilisateurs
import os, sys
# Les variables pouvant positionnees sont :
# "CODE_PATH_SURCHARGE","DTDDirectory","rep_user","INSTALLDIR","path_doc","exec_acrobat","rep_cata"
-print "import des prefs de OPENTURNS_WRAPPER"
+print "import des prefs de OPENTURNS_STUDY"
-code = "OPENTURNS_WRAPPER"
+code = "OPENTURNS_STUDY"
# REPINI sert à localiser le fichier
# initialdir sert comme directory initial des QFileDialog
--- /dev/null
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# CONFIGURATION MANAGEMENT OF EDF VERSION
+# ======================================================================
+# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG
+# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
+# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
+# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
+# (AT YOUR OPTION) ANY LATER VERSION.
+#
+# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
+# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
+# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
+# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
+#
+# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
+# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
+# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
+#
+#
+# ======================================================================
+
+"""
+ Ce module sert à lancer EFICAS configuré pour Openturns
+"""
+# Modules Python
+
+# Modules Eficas
+import prefs
+prefs.code="OPENTURNS_STUDY"
+from InterfaceQT4 import eficas_go
+
+eficas_go.lance_eficas(code=prefs.code)
+++ /dev/null
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-# CONFIGURATION MANAGEMENT OF EDF VERSION
-# ======================================================================
-# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG
-# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
-# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
-# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
-# (AT YOUR OPTION) ANY LATER VERSION.
-#
-# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
-# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
-# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
-# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
-#
-# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
-# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
-# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
-#
-#
-# ======================================================================
-
-"""
- Ce module sert à lancer EFICAS configuré pour Openturns
-"""
-# Modules Python
-
-# Modules Eficas
-import prefs
-prefs.code="OPENTURNS_WRAPPER"
-from InterfaceQT4 import eficas_go
-
-eficas_go.lance_eficas(code=prefs.code)