def set_Copules_recalcule_etat(self):
for etapeTraitee in self.etapes :
if etapeTraitee.nom == 'CORRELATION' :
- copule=etapeTraitee.get_child('LaCopule')
+ copule=etapeTraitee.get_child('Copula')
if copule !=None :
copule.state='arecalculer'
def recalcule_etat_correlation(self):
for etapeTraitee in self.etapes :
if etapeTraitee.nom == 'CORRELATION' :
- copule=etapeTraitee.get_child('LaCopule')
+ copule=etapeTraitee.get_child('Copula')
if copule !=None :
copule.state='arecalculer'
copule.isvalid()
if e.nom=="CORRELATION":
e.state="changed"
try :
- MCFils=e.get_child('LaCopule')
+ MCFils=e.get_child('Copula')
MCFils.state="changed"
except :
pass
__repr__=info
__str__=info
+class Matrice:
+ def __init__(self,nbLigs=None,nbCols=None,methodeCalculTaille=None,formatSortie="ligne",valSup=None,valMin=None,structure=None):
+ self.nbLigs=nbLigs
+ self.nbCols=nbCols
+ self.methodeCalculTaille=methodeCalculTaille
+ self.formatSortie=formatSortie
+ self.valSup=valSup
+ self.valMin=valMin
+ self.structure=structure
+
+ def __convert__(self,valeur):
+ # Attention ne verifie pas grand chose
+ if type(valeur) != types.ListType :
+ return None
+ return valeur
+
+ def info(self):
+ return "Matrice %s x %s" % (self.nbLigs, self.nbCols)
+
+ __repr__=info
+ __str__=info
+
#CONTEXT.debug = 1
JdC = JDC_CATA ( code = 'OPENTURNS_STUDY',
ang = "Variable correlation",
Copula = SIMP ( statut = "o",
- typ = "TXM",
- into = ( "Independent", ),
+ typ = 'TXM',
+ into = ( "Independent", "Normal" ),
defaut = "Independent",
fr = "Type de la copule",
ang = "Copula kind",
),
+ Matrix = BLOC ( condition = "Copula in ( 'Normal', )",
+
+ CorrelationMatrix = SIMP ( statut = "o",
+ typ = Matrice(nbLigs=None,
+ nbCols=None,
+ methodeCalculTaille='NbDeVariables',
+ valSup=1,
+ valMin=-1,
+ structure="symetrique"),
+ fr = "Matrice de correlation entre les variables d'entree",
+ ang = "Correlation matrix for input variables",
+ ),
+ ), # Fin BLOC Matrix
+
) # Fin PROC CORRELATION
# Ordre Catalogue CORRELATION
import os, sys
# Les variables pouvant positionnees sont :
-print "import des prefs de OPENTURNS_STUDY"
+print "import des prefs de OPENTURNS"
# REPINI sert à localiser le fichier
# initialdir sert comme directory initial des QFileDialog
rep_cata = INSTALLDIR
path_doc = os.path.join(rep_cata,'Doc')
exec_acrobat = "/usr/bin/xpdf"
+savedir = os.environ['HOME']
# OpenTURNS Python module
OpenTURNS_path="/local00/home/dutka/OpenTURNS/merge/trunk/build/install/lib/python2.4/site-packages"
# Choix des catalogues
sys.path[:0]=[INSTALLDIR, OpenTURNS_path]
-
import os, sys
# Les variables pouvant positionnees sont :
-# "CODE_PATH_SURCHARGE","OpenTURNS_path","rep_user","INSTALLDIR","path_doc","exec_acrobat","rep_cata"
-print "import des prefs de OPENTURNS_WRAPPER"
+print "import des prefs de OPENTURNS"
# REPINI sert à localiser le fichier
# initialdir sert comme directory initial des QFileDialog
rep_cata = INSTALLDIR
path_doc = os.path.join(rep_cata,'Doc')
exec_acrobat = "/usr/bin/xpdf"
+savedir = os.environ['HOME']
+
# OpenTURNS Python module
OpenTURNS_path="/local00/home/dutka/OpenTURNS/merge/trunk/build/install/lib/python2.4/site-packages"
-
# Choix des catalogues
-sys.path[:0]=[INSTALLDIR,OpenTURNS_path]
-
-
+sys.path[:0]=[INSTALLDIR, OpenTURNS_path]