New version of Eficas for Open TURNS 0.13.2

Here are tarball of Eficas for use with Open TURNS 0.13.2 or later:

This tool will help you in writing python script to run uncertainty studies with Open TURNS 0.13.2 or later.

You can install it this way:

  • decompress your tarball:

either tar -xzvf EficasV2.0.1.1_OpenTURNS-0.13.2-source.tar.gz

or tar -xjvf EficasV2.0.1.1_OpenTURNS-0.13.2-source.tar.bz2

  • change to newly created directory EficasV2.0.1.1_OpenTURNS-0.13.2

cd EficasV2.0.1.1_OpenTURNS-0.13.2

  • configure the installation (we make the assumption that you plan to install Eficas in <EficasDIR>, to use Python 2.4 and that OpenTURNS is installed in <OpenTURNSDIR>:

cmake . -DCMAKE_INSTALL_PREFIX=<EficasDIR> -DWITH_OPENTURNS=ON -DOPENTURNS_DIR= <OpenTURNSDIR> -DPYTHON_EXECUTABLE=/usr/bin/python2.4

  • build and install:

make make install

  • run Eficas to make wrapper description files:

python2.4 <EficasDIR>/Openturns_Study/qtEficas_openturns_study.py

  • run Eficas to make probabilistic studies:

python2.4 <EficasDIR>/Openturns_Wrapper/qtEficas_openturns_wrapper.py

See the README file for more installation instructions (if you don't have cmake)

Ivan DUTKA-MALEN

Comments

1. souchaud@… -- 2011-04-22 15:32

Hi,

You have to perform the following modification of the file Extensions/param2.py in order to use Eficas with the numpy package instead of the Numeric package (which seems to be incompatible with python 2.6):

  • line 4: import Numeric is replaced by: import numpy.core.numeric as Numeric

You also have to start qtEficas_openturns_study.py from a directory that includes the file OpenTURNS_Cata_Study_V8.py else Eficas will complain about this file missing.

Best regards,

Régis

2. souchaud@… -- 2011-04-22 15:33

Hi,

It concerns the wrapping file generation. You must add both following lines in the program ~generator/OpenturnsXML.py, method Parameters(), just after line about parameters.mode_ :

if (parameters.mode_ == openturns.WrapperMode.FORK):

parameters.command_ = self.GetMCVal('Command')

If not, the tag <command> wouldn't be generated in the XML file, even if it had been written in the COMM file.

Best regards,

Dominique

3. souchaud@… -- 2011-04-22 15:33

Hi,

It concerns another error detected in the wrapping file generation. You must add the following lines in the program ~generator/generator_openturns_wrapper.py, method generMCSIMP(), just after line s=PythonGenerator.generMCSIMP(self,obj) :

if not( type(obj.valeur) in (list, tuple)) and (obj.get_min_max()[1] != 1):

valeur=(obj.valeur,)

else :

valeur=obj.valeur

If not, the tag <subst> wouldn't be properly generated in the XML file.

Best regards,

Dominique