From: Ovidiu Mircescu Date: Wed, 20 Mar 2019 13:22:35 +0000 (+0100) Subject: Some cleaning. X-Git-Tag: V9_3_0rc1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5ad563b666533387bba82bb11746e8b9440d7631;p=tools%2Fydefx.git Some cleaning. --- diff --git a/src/pyexample/findidefixdata.py b/src/pyexample/findidefixdata.py deleted file mode 100755 index bf34e9c..0000000 --- a/src/pyexample/findidefixdata.py +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env python3 -#from inspect import currentframe, getframeinfo -#from pathlib import Path - -#filename = getframeinfo(currentframe()).filename -#parent = Path(filename).resolve().parent -import inspect -import pathlib - -filename = inspect.getframeinfo(inspect.currentframe()).filename -parent = pathlib.Path(filename).resolve().parent -print(parent) diff --git a/src/pyexample/idefixconfig.json b/src/pyexample/idefixconfig.json deleted file mode 100644 index b08cc10..0000000 --- a/src/pyexample/idefixconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "nbbranches": 8, - "studymodule": "idefixstudy", - "sampleIterator": "samplecsviterator" -} \ No newline at end of file diff --git a/src/pyexample/idefixconfig.py b/src/pyexample/idefixconfig.py deleted file mode 100644 index e9e0cf9..0000000 --- a/src/pyexample/idefixconfig.py +++ /dev/null @@ -1,2 +0,0 @@ -nbbranches=8 -studymodule="idefixstudy" diff --git a/src/pyexample/idefixdata.csv b/src/pyexample/idefixdata.csv deleted file mode 100644 index 22caa39..0000000 --- a/src/pyexample/idefixdata.csv +++ /dev/null @@ -1,1001 +0,0 @@ -"x","y","z" -0.0,0.0,0.0 -1.0,0.0,0.0 -2.0,0.0,0.0 -3.0,0.0,0.0 -4.0,0.0,0.0 -5.0,0.0,0.0 -6.0,0.0,0.0 -7.0,0.0,0.0 -8.0,0.0,0.0 -9.0,0.0,0.0 -0.0,10.0,0.0 -1.0,10.0,0.0 -2.0,10.0,0.0 -3.0,10.0,0.0 -4.0,10.0,0.0 -5.0,10.0,0.0 -6.0,10.0,0.0 -7.0,10.0,0.0 -8.0,10.0,0.0 -9.0,10.0,0.0 -0.0,20.0,0.0 -1.0,20.0,0.0 -2.0,20.0,0.0 -3.0,20.0,0.0 -4.0,20.0,0.0 -5.0,20.0,0.0 -6.0,20.0,0.0 -7.0,20.0,0.0 -8.0,20.0,0.0 -9.0,20.0,0.0 -0.0,30.0,0.0 -1.0,30.0,0.0 -2.0,30.0,0.0 -3.0,30.0,0.0 -4.0,30.0,0.0 -5.0,30.0,0.0 -6.0,30.0,0.0 -7.0,30.0,0.0 -8.0,30.0,0.0 -9.0,30.0,0.0 -0.0,40.0,0.0 -1.0,40.0,0.0 -2.0,40.0,0.0 -3.0,40.0,0.0 -4.0,40.0,0.0 -5.0,40.0,0.0 -6.0,40.0,0.0 -7.0,40.0,0.0 -8.0,40.0,0.0 -9.0,40.0,0.0 -0.0,50.0,0.0 -1.0,50.0,0.0 -2.0,50.0,0.0 -3.0,50.0,0.0 -4.0,50.0,0.0 -5.0,50.0,0.0 -6.0,50.0,0.0 -7.0,50.0,0.0 -8.0,50.0,0.0 -9.0,50.0,0.0 -0.0,60.0,0.0 -1.0,60.0,0.0 -2.0,60.0,0.0 -3.0,60.0,0.0 -4.0,60.0,0.0 -5.0,60.0,0.0 -6.0,60.0,0.0 -7.0,60.0,0.0 -8.0,60.0,0.0 -9.0,60.0,0.0 -0.0,70.0,0.0 -1.0,70.0,0.0 -2.0,70.0,0.0 -3.0,70.0,0.0 -4.0,70.0,0.0 -5.0,70.0,0.0 -6.0,70.0,0.0 -7.0,70.0,0.0 -8.0,70.0,0.0 -9.0,70.0,0.0 -0.0,80.0,0.0 -1.0,80.0,0.0 -2.0,80.0,0.0 -3.0,80.0,0.0 -4.0,80.0,0.0 -5.0,80.0,0.0 -6.0,80.0,0.0 -7.0,80.0,0.0 -8.0,80.0,0.0 -9.0,80.0,0.0 -0.0,90.0,0.0 -1.0,90.0,0.0 -2.0,90.0,0.0 -3.0,90.0,0.0 -4.0,90.0,0.0 -5.0,90.0,0.0 -6.0,90.0,0.0 -7.0,90.0,0.0 -8.0,90.0,0.0 -9.0,90.0,0.0 -0.0,0.0,100.0 -1.0,0.0,100.0 -2.0,0.0,100.0 -3.0,0.0,100.0 -4.0,0.0,100.0 -5.0,0.0,100.0 -6.0,0.0,100.0 -7.0,0.0,100.0 -8.0,0.0,100.0 -9.0,0.0,100.0 -0.0,10.0,100.0 -1.0,10.0,100.0 -2.0,10.0,100.0 -3.0,10.0,100.0 -4.0,10.0,100.0 -5.0,10.0,100.0 -6.0,10.0,100.0 -7.0,10.0,100.0 -8.0,10.0,100.0 -9.0,10.0,100.0 -0.0,20.0,100.0 -1.0,20.0,100.0 -2.0,20.0,100.0 -3.0,20.0,100.0 -4.0,20.0,100.0 -5.0,20.0,100.0 -6.0,20.0,100.0 -7.0,20.0,100.0 -8.0,20.0,100.0 -9.0,20.0,100.0 -0.0,30.0,100.0 -1.0,30.0,100.0 -2.0,30.0,100.0 -3.0,30.0,100.0 -4.0,30.0,100.0 -5.0,30.0,100.0 -6.0,30.0,100.0 -7.0,30.0,100.0 -8.0,30.0,100.0 -9.0,30.0,100.0 -0.0,40.0,100.0 -1.0,40.0,100.0 -2.0,40.0,100.0 -3.0,40.0,100.0 -4.0,40.0,100.0 -5.0,40.0,100.0 -6.0,40.0,100.0 -7.0,40.0,100.0 -8.0,40.0,100.0 -9.0,40.0,100.0 -0.0,50.0,100.0 -1.0,50.0,100.0 -2.0,50.0,100.0 -3.0,50.0,100.0 -4.0,50.0,100.0 -5.0,50.0,100.0 -6.0,50.0,100.0 -7.0,50.0,100.0 -8.0,50.0,100.0 -9.0,50.0,100.0 -0.0,60.0,100.0 -1.0,60.0,100.0 -2.0,60.0,100.0 -3.0,60.0,100.0 -4.0,60.0,100.0 -5.0,60.0,100.0 -6.0,60.0,100.0 -7.0,60.0,100.0 -8.0,60.0,100.0 -9.0,60.0,100.0 -0.0,70.0,100.0 -1.0,70.0,100.0 -2.0,70.0,100.0 -3.0,70.0,100.0 -4.0,70.0,100.0 -5.0,70.0,100.0 -6.0,70.0,100.0 -7.0,70.0,100.0 -8.0,70.0,100.0 -9.0,70.0,100.0 -0.0,80.0,100.0 -1.0,80.0,100.0 -2.0,80.0,100.0 -3.0,80.0,100.0 -4.0,80.0,100.0 -5.0,80.0,100.0 -6.0,80.0,100.0 -7.0,80.0,100.0 -8.0,80.0,100.0 -9.0,80.0,100.0 -0.0,90.0,100.0 -1.0,90.0,100.0 -2.0,90.0,100.0 -3.0,90.0,100.0 -4.0,90.0,100.0 -5.0,90.0,100.0 -6.0,90.0,100.0 -7.0,90.0,100.0 -8.0,90.0,100.0 -9.0,90.0,100.0 -0.0,0.0,200.0 -1.0,0.0,200.0 -2.0,0.0,200.0 -3.0,0.0,200.0 -4.0,0.0,200.0 -5.0,0.0,200.0 -6.0,0.0,200.0 -7.0,0.0,200.0 -8.0,0.0,200.0 -9.0,0.0,200.0 -0.0,10.0,200.0 -1.0,10.0,200.0 -2.0,10.0,200.0 -3.0,10.0,200.0 -4.0,10.0,200.0 -5.0,10.0,200.0 -6.0,10.0,200.0 -7.0,10.0,200.0 -8.0,10.0,200.0 -9.0,10.0,200.0 -0.0,20.0,200.0 -1.0,20.0,200.0 -2.0,20.0,200.0 -3.0,20.0,200.0 -4.0,20.0,200.0 -5.0,20.0,200.0 -6.0,20.0,200.0 -7.0,20.0,200.0 -8.0,20.0,200.0 -9.0,20.0,200.0 -0.0,30.0,200.0 -1.0,30.0,200.0 -2.0,30.0,200.0 -3.0,30.0,200.0 -4.0,30.0,200.0 -5.0,30.0,200.0 -6.0,30.0,200.0 -7.0,30.0,200.0 -8.0,30.0,200.0 -9.0,30.0,200.0 -0.0,40.0,200.0 -1.0,40.0,200.0 -2.0,40.0,200.0 -3.0,40.0,200.0 -4.0,40.0,200.0 -5.0,40.0,200.0 -6.0,40.0,200.0 -7.0,40.0,200.0 -8.0,40.0,200.0 -9.0,40.0,200.0 -0.0,50.0,200.0 -1.0,50.0,200.0 -2.0,50.0,200.0 -3.0,50.0,200.0 -4.0,50.0,200.0 -5.0,50.0,200.0 -6.0,50.0,200.0 -7.0,50.0,200.0 -8.0,50.0,200.0 -9.0,50.0,200.0 -0.0,60.0,200.0 -1.0,60.0,200.0 -2.0,60.0,200.0 -3.0,60.0,200.0 -4.0,60.0,200.0 -5.0,60.0,200.0 -6.0,60.0,200.0 -7.0,60.0,200.0 -8.0,60.0,200.0 -9.0,60.0,200.0 -0.0,70.0,200.0 -1.0,70.0,200.0 -2.0,70.0,200.0 -3.0,70.0,200.0 -4.0,70.0,200.0 -5.0,70.0,200.0 -6.0,70.0,200.0 -7.0,70.0,200.0 -8.0,70.0,200.0 -9.0,70.0,200.0 -0.0,80.0,200.0 -1.0,80.0,200.0 -2.0,80.0,200.0 -3.0,80.0,200.0 -4.0,80.0,200.0 -5.0,80.0,200.0 -6.0,80.0,200.0 -7.0,80.0,200.0 -8.0,80.0,200.0 -9.0,80.0,200.0 -0.0,90.0,200.0 -1.0,90.0,200.0 -2.0,90.0,200.0 -3.0,90.0,200.0 -4.0,90.0,200.0 -5.0,90.0,200.0 -6.0,90.0,200.0 -7.0,90.0,200.0 -8.0,90.0,200.0 -9.0,90.0,200.0 -0.0,0.0,300.0 -1.0,0.0,300.0 -2.0,0.0,300.0 -3.0,0.0,300.0 -4.0,0.0,300.0 -5.0,0.0,300.0 -6.0,0.0,300.0 -7.0,0.0,300.0 -8.0,0.0,300.0 -9.0,0.0,300.0 -0.0,10.0,300.0 -1.0,10.0,300.0 -2.0,10.0,300.0 -3.0,10.0,300.0 -4.0,10.0,300.0 -5.0,10.0,300.0 -6.0,10.0,300.0 -7.0,10.0,300.0 -8.0,10.0,300.0 -9.0,10.0,300.0 -0.0,20.0,300.0 -1.0,20.0,300.0 -2.0,20.0,300.0 -3.0,20.0,300.0 -4.0,20.0,300.0 -5.0,20.0,300.0 -6.0,20.0,300.0 -7.0,20.0,300.0 -8.0,20.0,300.0 -9.0,20.0,300.0 -0.0,30.0,300.0 -1.0,30.0,300.0 -2.0,30.0,300.0 -3.0,30.0,300.0 -4.0,30.0,300.0 -5.0,30.0,300.0 -6.0,30.0,300.0 -7.0,30.0,300.0 -8.0,30.0,300.0 -9.0,30.0,300.0 -0.0,40.0,300.0 -1.0,40.0,300.0 -2.0,40.0,300.0 -3.0,40.0,300.0 -4.0,40.0,300.0 -5.0,40.0,300.0 -6.0,40.0,300.0 -7.0,40.0,300.0 -8.0,40.0,300.0 -9.0,40.0,300.0 -0.0,50.0,300.0 -1.0,50.0,300.0 -2.0,50.0,300.0 -3.0,50.0,300.0 -4.0,50.0,300.0 -5.0,50.0,300.0 -6.0,50.0,300.0 -7.0,50.0,300.0 -8.0,50.0,300.0 -9.0,50.0,300.0 -0.0,60.0,300.0 -1.0,60.0,300.0 -2.0,60.0,300.0 -3.0,60.0,300.0 -4.0,60.0,300.0 -5.0,60.0,300.0 -6.0,60.0,300.0 -7.0,60.0,300.0 -8.0,60.0,300.0 -9.0,60.0,300.0 -0.0,70.0,300.0 -1.0,70.0,300.0 -2.0,70.0,300.0 -3.0,70.0,300.0 -4.0,70.0,300.0 -5.0,70.0,300.0 -6.0,70.0,300.0 -7.0,70.0,300.0 -8.0,70.0,300.0 -9.0,70.0,300.0 -0.0,80.0,300.0 -1.0,80.0,300.0 -2.0,80.0,300.0 -3.0,80.0,300.0 -4.0,80.0,300.0 -5.0,80.0,300.0 -6.0,80.0,300.0 -7.0,80.0,300.0 -8.0,80.0,300.0 -9.0,80.0,300.0 -0.0,90.0,300.0 -1.0,90.0,300.0 -2.0,90.0,300.0 -3.0,90.0,300.0 -4.0,90.0,300.0 -5.0,90.0,300.0 -6.0,90.0,300.0 -7.0,90.0,300.0 -8.0,90.0,300.0 -9.0,90.0,300.0 -0.0,0.0,400.0 -1.0,0.0,400.0 -2.0,0.0,400.0 -3.0,0.0,400.0 -4.0,0.0,400.0 -5.0,0.0,400.0 -6.0,0.0,400.0 -7.0,0.0,400.0 -8.0,0.0,400.0 -9.0,0.0,400.0 -0.0,10.0,400.0 -1.0,10.0,400.0 -2.0,10.0,400.0 -3.0,10.0,400.0 -4.0,10.0,400.0 -5.0,10.0,400.0 -6.0,10.0,400.0 -7.0,10.0,400.0 -8.0,10.0,400.0 -9.0,10.0,400.0 -0.0,20.0,400.0 -1.0,20.0,400.0 -2.0,20.0,400.0 -3.0,20.0,400.0 -4.0,20.0,400.0 -5.0,20.0,400.0 -6.0,20.0,400.0 -7.0,20.0,400.0 -8.0,20.0,400.0 -9.0,20.0,400.0 -0.0,30.0,400.0 -1.0,30.0,400.0 -2.0,30.0,400.0 -3.0,30.0,400.0 -4.0,30.0,400.0 -5.0,30.0,400.0 -6.0,30.0,400.0 -7.0,30.0,400.0 -8.0,30.0,400.0 -9.0,30.0,400.0 -0.0,40.0,400.0 -1.0,40.0,400.0 -2.0,40.0,400.0 -3.0,40.0,400.0 -4.0,40.0,400.0 -5.0,40.0,400.0 -6.0,40.0,400.0 -7.0,40.0,400.0 -8.0,40.0,400.0 -9.0,40.0,400.0 -0.0,50.0,400.0 -1.0,50.0,400.0 -2.0,50.0,400.0 -3.0,50.0,400.0 -4.0,50.0,400.0 -5.0,50.0,400.0 -6.0,50.0,400.0 -7.0,50.0,400.0 -8.0,50.0,400.0 -9.0,50.0,400.0 -0.0,60.0,400.0 -1.0,60.0,400.0 -2.0,60.0,400.0 -3.0,60.0,400.0 -4.0,60.0,400.0 -5.0,60.0,400.0 -6.0,60.0,400.0 -7.0,60.0,400.0 -8.0,60.0,400.0 -9.0,60.0,400.0 -0.0,70.0,400.0 -1.0,70.0,400.0 -2.0,70.0,400.0 -3.0,70.0,400.0 -4.0,70.0,400.0 -5.0,70.0,400.0 -6.0,70.0,400.0 -7.0,70.0,400.0 -8.0,70.0,400.0 -9.0,70.0,400.0 -0.0,80.0,400.0 -1.0,80.0,400.0 -2.0,80.0,400.0 -3.0,80.0,400.0 -4.0,80.0,400.0 -5.0,80.0,400.0 -6.0,80.0,400.0 -7.0,80.0,400.0 -8.0,80.0,400.0 -9.0,80.0,400.0 -0.0,90.0,400.0 -1.0,90.0,400.0 -2.0,90.0,400.0 -3.0,90.0,400.0 -4.0,90.0,400.0 -5.0,90.0,400.0 -6.0,90.0,400.0 -7.0,90.0,400.0 -8.0,90.0,400.0 -9.0,90.0,400.0 -0.0,0.0,500.0 -1.0,0.0,500.0 -2.0,0.0,500.0 -3.0,0.0,500.0 -4.0,0.0,500.0 -5.0,0.0,500.0 -6.0,0.0,500.0 -7.0,0.0,500.0 -8.0,0.0,500.0 -9.0,0.0,500.0 -0.0,10.0,500.0 -1.0,10.0,500.0 -2.0,10.0,500.0 -3.0,10.0,500.0 -4.0,10.0,500.0 -5.0,10.0,500.0 -6.0,10.0,500.0 -7.0,10.0,500.0 -8.0,10.0,500.0 -9.0,10.0,500.0 -0.0,20.0,500.0 -1.0,20.0,500.0 -2.0,20.0,500.0 -3.0,20.0,500.0 -4.0,20.0,500.0 -5.0,20.0,500.0 -6.0,20.0,500.0 -7.0,20.0,500.0 -8.0,20.0,500.0 -9.0,20.0,500.0 -0.0,30.0,500.0 -1.0,30.0,500.0 -2.0,30.0,500.0 -3.0,30.0,500.0 -4.0,30.0,500.0 -5.0,30.0,500.0 -6.0,30.0,500.0 -7.0,30.0,500.0 -8.0,30.0,500.0 -9.0,30.0,500.0 -0.0,40.0,500.0 -1.0,40.0,500.0 -2.0,40.0,500.0 -3.0,40.0,500.0 -4.0,40.0,500.0 -5.0,40.0,500.0 -6.0,40.0,500.0 -7.0,40.0,500.0 -8.0,40.0,500.0 -9.0,40.0,500.0 -0.0,50.0,500.0 -1.0,50.0,500.0 -2.0,50.0,500.0 -3.0,50.0,500.0 -4.0,50.0,500.0 -5.0,50.0,500.0 -6.0,50.0,500.0 -7.0,50.0,500.0 -8.0,50.0,500.0 -9.0,50.0,500.0 -0.0,60.0,500.0 -1.0,60.0,500.0 -2.0,60.0,500.0 -3.0,60.0,500.0 -4.0,60.0,500.0 -5.0,60.0,500.0 -6.0,60.0,500.0 -7.0,60.0,500.0 -8.0,60.0,500.0 -9.0,60.0,500.0 -0.0,70.0,500.0 -1.0,70.0,500.0 -2.0,70.0,500.0 -3.0,70.0,500.0 -4.0,70.0,500.0 -5.0,70.0,500.0 -6.0,70.0,500.0 -7.0,70.0,500.0 -8.0,70.0,500.0 -9.0,70.0,500.0 -0.0,80.0,500.0 -1.0,80.0,500.0 -2.0,80.0,500.0 -3.0,80.0,500.0 -4.0,80.0,500.0 -5.0,80.0,500.0 -6.0,80.0,500.0 -7.0,80.0,500.0 -8.0,80.0,500.0 -9.0,80.0,500.0 -0.0,90.0,500.0 -1.0,90.0,500.0 -2.0,90.0,500.0 -3.0,90.0,500.0 -4.0,90.0,500.0 -5.0,90.0,500.0 -6.0,90.0,500.0 -7.0,90.0,500.0 -8.0,90.0,500.0 -9.0,90.0,500.0 -0.0,0.0,600.0 -1.0,0.0,600.0 -2.0,0.0,600.0 -3.0,0.0,600.0 -4.0,0.0,600.0 -5.0,0.0,600.0 -6.0,0.0,600.0 -7.0,0.0,600.0 -8.0,0.0,600.0 -9.0,0.0,600.0 -0.0,10.0,600.0 -1.0,10.0,600.0 -2.0,10.0,600.0 -3.0,10.0,600.0 -4.0,10.0,600.0 -5.0,10.0,600.0 -6.0,10.0,600.0 -7.0,10.0,600.0 -8.0,10.0,600.0 -9.0,10.0,600.0 -0.0,20.0,600.0 -1.0,20.0,600.0 -2.0,20.0,600.0 -3.0,20.0,600.0 -4.0,20.0,600.0 -5.0,20.0,600.0 -6.0,20.0,600.0 -7.0,20.0,600.0 -8.0,20.0,600.0 -9.0,20.0,600.0 -0.0,30.0,600.0 -1.0,30.0,600.0 -2.0,30.0,600.0 -3.0,30.0,600.0 -4.0,30.0,600.0 -5.0,30.0,600.0 -6.0,30.0,600.0 -7.0,30.0,600.0 -8.0,30.0,600.0 -9.0,30.0,600.0 -0.0,40.0,600.0 -1.0,40.0,600.0 -2.0,40.0,600.0 -3.0,40.0,600.0 -4.0,40.0,600.0 -5.0,40.0,600.0 -6.0,40.0,600.0 -7.0,40.0,600.0 -8.0,40.0,600.0 -9.0,40.0,600.0 -0.0,50.0,600.0 -1.0,50.0,600.0 -2.0,50.0,600.0 -3.0,50.0,600.0 -4.0,50.0,600.0 -5.0,50.0,600.0 -6.0,50.0,600.0 -7.0,50.0,600.0 -8.0,50.0,600.0 -9.0,50.0,600.0 -0.0,60.0,600.0 -1.0,60.0,600.0 -2.0,60.0,600.0 -3.0,60.0,600.0 -4.0,60.0,600.0 -5.0,60.0,600.0 -6.0,60.0,600.0 -7.0,60.0,600.0 -8.0,60.0,600.0 -9.0,60.0,600.0 -0.0,70.0,600.0 -1.0,70.0,600.0 -2.0,70.0,600.0 -3.0,70.0,600.0 -4.0,70.0,600.0 -5.0,70.0,600.0 -6.0,70.0,600.0 -7.0,70.0,600.0 -8.0,70.0,600.0 -9.0,70.0,600.0 -0.0,80.0,600.0 -1.0,80.0,600.0 -2.0,80.0,600.0 -3.0,80.0,600.0 -4.0,80.0,600.0 -5.0,80.0,600.0 -6.0,80.0,600.0 -7.0,80.0,600.0 -8.0,80.0,600.0 -9.0,80.0,600.0 -0.0,90.0,600.0 -1.0,90.0,600.0 -2.0,90.0,600.0 -3.0,90.0,600.0 -4.0,90.0,600.0 -5.0,90.0,600.0 -6.0,90.0,600.0 -7.0,90.0,600.0 -8.0,90.0,600.0 -9.0,90.0,600.0 -0.0,0.0,700.0 -1.0,0.0,700.0 -2.0,0.0,700.0 -3.0,0.0,700.0 -4.0,0.0,700.0 -5.0,0.0,700.0 -6.0,0.0,700.0 -7.0,0.0,700.0 -8.0,0.0,700.0 -9.0,0.0,700.0 -0.0,10.0,700.0 -1.0,10.0,700.0 -2.0,10.0,700.0 -3.0,10.0,700.0 -4.0,10.0,700.0 -5.0,10.0,700.0 -6.0,10.0,700.0 -7.0,10.0,700.0 -8.0,10.0,700.0 -9.0,10.0,700.0 -0.0,20.0,700.0 -1.0,20.0,700.0 -2.0,20.0,700.0 -3.0,20.0,700.0 -4.0,20.0,700.0 -5.0,20.0,700.0 -6.0,20.0,700.0 -7.0,20.0,700.0 -8.0,20.0,700.0 -9.0,20.0,700.0 -0.0,30.0,700.0 -1.0,30.0,700.0 -2.0,30.0,700.0 -3.0,30.0,700.0 -4.0,30.0,700.0 -5.0,30.0,700.0 -6.0,30.0,700.0 -7.0,30.0,700.0 -8.0,30.0,700.0 -9.0,30.0,700.0 -0.0,40.0,700.0 -1.0,40.0,700.0 -2.0,40.0,700.0 -3.0,40.0,700.0 -4.0,40.0,700.0 -5.0,40.0,700.0 -6.0,40.0,700.0 -7.0,40.0,700.0 -8.0,40.0,700.0 -9.0,40.0,700.0 -0.0,50.0,700.0 -1.0,50.0,700.0 -2.0,50.0,700.0 -3.0,50.0,700.0 -4.0,50.0,700.0 -5.0,50.0,700.0 -6.0,50.0,700.0 -7.0,50.0,700.0 -8.0,50.0,700.0 -9.0,50.0,700.0 -0.0,60.0,700.0 -1.0,60.0,700.0 -2.0,60.0,700.0 -3.0,60.0,700.0 -4.0,60.0,700.0 -5.0,60.0,700.0 -6.0,60.0,700.0 -7.0,60.0,700.0 -8.0,60.0,700.0 -9.0,60.0,700.0 -0.0,70.0,700.0 -1.0,70.0,700.0 -2.0,70.0,700.0 -3.0,70.0,700.0 -4.0,70.0,700.0 -5.0,70.0,700.0 -6.0,70.0,700.0 -7.0,70.0,700.0 -8.0,70.0,700.0 -9.0,70.0,700.0 -0.0,80.0,700.0 -1.0,80.0,700.0 -2.0,80.0,700.0 -3.0,80.0,700.0 -4.0,80.0,700.0 -5.0,80.0,700.0 -6.0,80.0,700.0 -7.0,80.0,700.0 -8.0,80.0,700.0 -9.0,80.0,700.0 -0.0,90.0,700.0 -1.0,90.0,700.0 -2.0,90.0,700.0 -3.0,90.0,700.0 -4.0,90.0,700.0 -5.0,90.0,700.0 -6.0,90.0,700.0 -7.0,90.0,700.0 -8.0,90.0,700.0 -9.0,90.0,700.0 -0.0,0.0,800.0 -1.0,0.0,800.0 -2.0,0.0,800.0 -3.0,0.0,800.0 -4.0,0.0,800.0 -5.0,0.0,800.0 -6.0,0.0,800.0 -7.0,0.0,800.0 -8.0,0.0,800.0 -9.0,0.0,800.0 -0.0,10.0,800.0 -1.0,10.0,800.0 -2.0,10.0,800.0 -3.0,10.0,800.0 -4.0,10.0,800.0 -5.0,10.0,800.0 -6.0,10.0,800.0 -7.0,10.0,800.0 -8.0,10.0,800.0 -9.0,10.0,800.0 -0.0,20.0,800.0 -1.0,20.0,800.0 -2.0,20.0,800.0 -3.0,20.0,800.0 -4.0,20.0,800.0 -5.0,20.0,800.0 -6.0,20.0,800.0 -7.0,20.0,800.0 -8.0,20.0,800.0 -9.0,20.0,800.0 -0.0,30.0,800.0 -1.0,30.0,800.0 -2.0,30.0,800.0 -3.0,30.0,800.0 -4.0,30.0,800.0 -5.0,30.0,800.0 -6.0,30.0,800.0 -7.0,30.0,800.0 -8.0,30.0,800.0 -9.0,30.0,800.0 -0.0,40.0,800.0 -1.0,40.0,800.0 -2.0,40.0,800.0 -3.0,40.0,800.0 -4.0,40.0,800.0 -5.0,40.0,800.0 -6.0,40.0,800.0 -7.0,40.0,800.0 -8.0,40.0,800.0 -9.0,40.0,800.0 -0.0,50.0,800.0 -1.0,50.0,800.0 -2.0,50.0,800.0 -3.0,50.0,800.0 -4.0,50.0,800.0 -5.0,50.0,800.0 -6.0,50.0,800.0 -7.0,50.0,800.0 -8.0,50.0,800.0 -9.0,50.0,800.0 -0.0,60.0,800.0 -1.0,60.0,800.0 -2.0,60.0,800.0 -3.0,60.0,800.0 -4.0,60.0,800.0 -5.0,60.0,800.0 -6.0,60.0,800.0 -7.0,60.0,800.0 -8.0,60.0,800.0 -9.0,60.0,800.0 -0.0,70.0,800.0 -1.0,70.0,800.0 -2.0,70.0,800.0 -3.0,70.0,800.0 -4.0,70.0,800.0 -5.0,70.0,800.0 -6.0,70.0,800.0 -7.0,70.0,800.0 -8.0,70.0,800.0 -9.0,70.0,800.0 -0.0,80.0,800.0 -1.0,80.0,800.0 -2.0,80.0,800.0 -3.0,80.0,800.0 -4.0,80.0,800.0 -5.0,80.0,800.0 -6.0,80.0,800.0 -7.0,80.0,800.0 -8.0,80.0,800.0 -9.0,80.0,800.0 -0.0,90.0,800.0 -1.0,90.0,800.0 -2.0,90.0,800.0 -3.0,90.0,800.0 -4.0,90.0,800.0 -5.0,90.0,800.0 -6.0,90.0,800.0 -7.0,90.0,800.0 -8.0,90.0,800.0 -9.0,90.0,800.0 -0.0,0.0,900.0 -1.0,0.0,900.0 -2.0,0.0,900.0 -3.0,0.0,900.0 -4.0,0.0,900.0 -5.0,0.0,900.0 -6.0,0.0,900.0 -7.0,0.0,900.0 -8.0,0.0,900.0 -9.0,0.0,900.0 -0.0,10.0,900.0 -1.0,10.0,900.0 -2.0,10.0,900.0 -3.0,10.0,900.0 -4.0,10.0,900.0 -5.0,10.0,900.0 -6.0,10.0,900.0 -7.0,10.0,900.0 -8.0,10.0,900.0 -9.0,10.0,900.0 -0.0,20.0,900.0 -1.0,20.0,900.0 -2.0,20.0,900.0 -3.0,20.0,900.0 -4.0,20.0,900.0 -5.0,20.0,900.0 -6.0,20.0,900.0 -7.0,20.0,900.0 -8.0,20.0,900.0 -9.0,20.0,900.0 -0.0,30.0,900.0 -1.0,30.0,900.0 -2.0,30.0,900.0 -3.0,30.0,900.0 -4.0,30.0,900.0 -5.0,30.0,900.0 -6.0,30.0,900.0 -7.0,30.0,900.0 -8.0,30.0,900.0 -9.0,30.0,900.0 -0.0,40.0,900.0 -1.0,40.0,900.0 -2.0,40.0,900.0 -3.0,40.0,900.0 -4.0,40.0,900.0 -5.0,40.0,900.0 -6.0,40.0,900.0 -7.0,40.0,900.0 -8.0,40.0,900.0 -9.0,40.0,900.0 -0.0,50.0,900.0 -1.0,50.0,900.0 -2.0,50.0,900.0 -3.0,50.0,900.0 -4.0,50.0,900.0 -5.0,50.0,900.0 -6.0,50.0,900.0 -7.0,50.0,900.0 -8.0,50.0,900.0 -9.0,50.0,900.0 -0.0,60.0,900.0 -1.0,60.0,900.0 -2.0,60.0,900.0 -3.0,60.0,900.0 -4.0,60.0,900.0 -5.0,60.0,900.0 -6.0,60.0,900.0 -7.0,60.0,900.0 -8.0,60.0,900.0 -9.0,60.0,900.0 -0.0,70.0,900.0 -1.0,70.0,900.0 -2.0,70.0,900.0 -3.0,70.0,900.0 -4.0,70.0,900.0 -5.0,70.0,900.0 -6.0,70.0,900.0 -7.0,70.0,900.0 -8.0,70.0,900.0 -9.0,70.0,900.0 -0.0,80.0,900.0 -1.0,80.0,900.0 -2.0,80.0,900.0 -3.0,80.0,900.0 -4.0,80.0,900.0 -5.0,80.0,900.0 -6.0,80.0,900.0 -7.0,80.0,900.0 -8.0,80.0,900.0 -9.0,80.0,900.0 -0.0,90.0,900.0 -1.0,90.0,900.0 -2.0,90.0,900.0 -3.0,90.0,900.0 -4.0,90.0,900.0 -5.0,90.0,900.0 -6.0,90.0,900.0 -7.0,90.0,900.0 -8.0,90.0,900.0 -9.0,90.0,900.0 diff --git a/src/pyexample/idefixoutputnames.csv b/src/pyexample/idefixoutputnames.csv deleted file mode 100644 index b478595..0000000 --- a/src/pyexample/idefixoutputnames.csv +++ /dev/null @@ -1 +0,0 @@ -s diff --git a/src/pyexample/idefixstudy.py b/src/pyexample/idefixstudy.py deleted file mode 100644 index 895c6ad..0000000 --- a/src/pyexample/idefixstudy.py +++ /dev/null @@ -1,6 +0,0 @@ -# -*- coding: utf-8 -*- -def _exec(x,y,z): - s = (x + y + z) / z - import time - time.sleep(1) - return s diff --git a/src/pyexample/plugin.py b/src/pyexample/plugin.py deleted file mode 100644 index 1cb16ba..0000000 --- a/src/pyexample/plugin.py +++ /dev/null @@ -1,106 +0,0 @@ -import SALOMERuntime -import pickle -import json - -datafile="input.csv" -resultfile="output.csv" -class myalgosync(SALOMERuntime.OptimizerAlgSync): - def __init__(self): - SALOMERuntime.OptimizerAlgSync.__init__(self, None) - - def setPool(self,pool): - """Must be implemented to set the pool""" - self.pool=pool - - def getTCForIn(self): - """return typecode of type expected as Input of the internal node """ - return SALOMERuntime.getSALOMERuntime().getTypeCode("string") - - def getTCForOut(self): - """return typecode of type expected as Output of the internal node""" - return SALOMERuntime.getSALOMERuntime().getTypeCode("string") - - def getTCForAlgoInit(self): - """return typecode of type expected as input for initialize """ - return SALOMERuntime.getSALOMERuntime().getTypeCode("string") - - def getTCForAlgoResult(self): - """return typecode of type expected as output of the algorithm """ - return SALOMERuntime.getSALOMERuntime().getTypeCode("int") - - def initialize(self,input): - """Optional method called on initialization. - The type of "input" is returned by "getTCForAlgoInit" - """ - with open("idefixconfig.json", "r") as f: - self.config = json.load(f) - - def start(self): - """Start to fill the pool with samples to evaluate.""" - self.id=0 - self.datafile=open(datafile, newline='') - #self.datafile=open(datafile) - import csv - self.data = csv.DictReader(self.datafile, quoting=csv.QUOTE_NONNUMERIC) - values=None - for i in range(0, self.getNbOfBranches()): - try: - values = next(self.data) - self.pool.pushInSample(self.id, - pickle.dumps(values, protocol=0).decode()) - self.id += 1 - except StopIteration: - pass - if values is not None: - with open(resultfile,"w") as f: - f.write("id,") - for v in values.keys(): - f.write(v+",") - f.write("\n") - - def takeDecision(self): - """ This method is called each time a sample has been evaluated. It can - either add new samples to evaluate in the pool, do nothing (wait for - more samples), or empty the pool to finish the evaluation. - """ - currentId=self.pool.getCurrentId() - samplebyte=self.pool.getCurrentInSample().getStringValue().encode() - sample = pickle.loads(samplebyte) - resultbyte=self.pool.getCurrentOutSample().getStringValue().encode() - error,result = pickle.loads(resultbyte) - with open(resultfile,"a") as f: - f.write(repr(currentId)+",") - for v in sample.values(): - f.write(repr(v)+",") - if error is None: - try: - for v in result: - f.write(repr(v)+",") - except TypeError: - # result is not iterable, it is just one number - f.write(repr(result)) - else: - error="Error:"+error.split('\n')[0] - f.write(error) - f.write("\n") - try: - values = next(self.data) - self.pool.pushInSample(self.id, pickle.dumps(values, protocol=0).decode()) - self.id += 1 - except StopIteration: - pass - - def finish(self): - """Optional method called when the algorithm has finished, successfully - or not, to perform any necessary clean up.""" - try: - self.datafile.close() - except: - pass - self.pool.destroyAll() - - def getAlgoResult(self): - """return the result of the algorithm. - The object returned is of type indicated by getTCForAlgoResult. - """ - return 0 diff --git a/src/pyexample/runcase.sh b/src/pyexample/runcase.sh deleted file mode 100755 index fe560fe..0000000 --- a/src/pyexample/runcase.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -commande=$* -/home/I35256/salome/base/appli_DEV/salome -t -/home/I35256/salome/base/appli_DEV/salome shell $commande -/home/I35256/salome/base/appli_DEV/salome killall