Salome HOME
import, formule, param et etc
[tools/eficas.git] / MAP / mapcata.py
index 69bd2dc81d85e86f17356daaa608d9b5405ad7dc..80de78206e4d1b58f7d9626ed4b367f2801743e8 100755 (executable)
@@ -135,15 +135,14 @@ image_name=SIMP(typ='TXM',fr= "pathname of the files of input images ; globing (
 gui=SIMP(typ=bool,fr= "Run the Graphical User Interface if set to True",ang= "Run the Graphical User Interface if set to True",docu= "",statut= "f",into=None,min=1,max=1,val_min='**',val_max='**',defaut=False),
 output_prefix=SIMP(typ='TXM',fr= "Prefix appended before the output file name",ang= "Prefix appended before the output file name",docu= "",statut= "f",into=None,min=1,max=1,val_min='**',val_max='**',defaut=''),
 output_suffix=SIMP(typ='TXM',fr= "Suffix appended after the output file name",ang= "Suffix appended after the output file name",docu= "",statut= "f",into=None,min=1,max=1,val_min='**',val_max='**',defaut=''),
-output_directory=SIMP(typ='Repertoire',fr= "(optional, default : <current directory>/refs) path where each output file is written",ang= "(optional, default : <current directory>/refs) path where each output file is written",docu= "",statut= "o",into=None,min=1,max=1,val_min='**',val_max='**',defaut=None),
 gaussian_blur_sigma=SIMP(typ='R',fr= "standard variation of the gaussian blur applied to the input image to create the mask",ang= "standard variation of the gaussian blur applied to the input image to create the mask",docu= "",statut= "f",into=None,min=1,max=1,val_min=0.0,val_max='**',defaut=None),
 ),
+output_directory=SIMP(typ='Repertoire',fr= "(optional, default : <current directory>/refs) path where each output file is written",ang= "(optional, default : <current directory>/refs) path where each output file is written",docu= "",statut= "o",into=None,min=1,max=1,val_min='**',val_max='**',defaut=None),
 mask_shape_parabolic=BLOC(condition="(mask_shape=='parabolic')",
 image_name=SIMP(typ='TXM',fr= "pathname of the files of input images ; globing (wild card) is allowed",ang= "pathname of the files of input images ; globing (wild card) is allowed",docu= "",statut= "o",into=None,min=1,max=1,val_min='**',val_max='**',defaut=None),
 gui=SIMP(typ=bool,fr= "Run the Graphical User Interface if set to True",ang= "Run the Graphical User Interface if set to True",docu= "",statut= "f",into=None,min=1,max=1,val_min='**',val_max='**',defaut=False),
 output_prefix=SIMP(typ='TXM',fr= "Prefix appended before the output file name",ang= "Prefix appended before the output file name",docu= "",statut= "f",into=None,min=1,max=1,val_min='**',val_max='**',defaut=''),
 output_suffix=SIMP(typ='TXM',fr= "Suffix appended after the output file name",ang= "Suffix appended after the output file name",docu= "",statut= "f",into=None,min=1,max=1,val_min='**',val_max='**',defaut=''),
-output_directory=SIMP(typ='Repertoire',fr= "(optional, default : <current directory>/refs) path where each output file is written",ang= "(optional, default : <current directory>/refs) path where each output file is written",docu= "",statut= "o",into=None,min=1,max=1,val_min='**',val_max='**',defaut=None),
 relative_steepness=SIMP(typ='R',fr= "(optional if GUI is used, mandatory otherwise) Set the steepness of the 2D parabola. The mask maximum value is computed as <relative_steepness> multiplied by the difference between input image minimum and maximum value divided by 100",ang= "(optional if GUI is used, mandatory otherwise) Set the steepness of the 2D parabola. The mask maximum value is computed as <relative_steepness> multiplied by the difference between input image minimum and maximum value divided by 100",docu= "",statut= "o",into=None,min=1,max=1,val_min='**',val_max='**',defaut=None),
 ),
 mask_shape_planar=BLOC(condition="(mask_shape=='planar')",
@@ -151,7 +150,6 @@ image_name=SIMP(typ='TXM',fr= "pathname of the files of input images ; globing (
 gui=SIMP(typ=bool,fr= "Run the Graphical User Interface if set to True",ang= "Run the Graphical User Interface if set to True",docu= "",statut= "f",into=None,min=1,max=1,val_min='**',val_max='**',defaut=False),
 output_prefix=SIMP(typ='TXM',fr= "Prefix appended before the output file name",ang= "Prefix appended before the output file name",docu= "",statut= "f",into=None,min=1,max=1,val_min='**',val_max='**',defaut=''),
 output_suffix=SIMP(typ='TXM',fr= "Suffix appended after the output file name",ang= "Suffix appended after the output file name",docu= "",statut= "f",into=None,min=1,max=1,val_min='**',val_max='**',defaut=''),
-output_directory=SIMP(typ='Repertoire',fr= "(optional, default : <current directory>/refs) path where each output file is written",ang= "(optional, default : <current directory>/refs) path where each output file is written",docu= "",statut= "o",into=None,min=1,max=1,val_min='**',val_max='**',defaut=None),
 relative_tilt=SIMP(typ='R',fr= "(optional if GUI is used, mandatory otherwise) set the plan tilt. In the <orientation> direction, the mask value is decreased by <relative_tilt> multiplied by the difference between the input image maximum and minimum values divided by 100 times the image length",ang= "(optional if GUI is used, mandatory otherwise) set the plan tilt. In the <orientation> direction, the mask value is decreased by <relative_tilt> multiplied by the difference between the input image maximum and minimum values divided by 100 times the image length",docu= "",statut= "f",into=None,min=1,max=1,val_min='**',val_max='**',defaut=None),
 orientation=SIMP(typ='R',fr= "(optional if GUI is used, mandatory otherwise) direction toward which the plan is tilting in degrees",ang= "(optional if GUI is used, mandatory otherwise) direction toward which the plan is tilting in degrees",docu= "",statut= "f",into=None,min=1,max=1,val_min='**',val_max='**',defaut=None),
 ),
@@ -868,9 +866,14 @@ streamlines_pitch=SIMP(typ='I',fr= "Number of level",ang= "Number of level",docu
 C_IMAGE_2D_ALIGN_DATA=PROC(nom='C_IMAGE_2D_ALIGN_DATA',op=None,
 UIinfo ={'groupes':('image',)},
 input_directory=SIMP(typ='Repertoire',fr= "directory where the input images are read",ang= "directory where the input images are read",docu= "",statut= "o",into=None,min=1,max=1,val_min='**',val_max='**',defaut=None),
+essai=SIMP(typ='TXM',fr= "directory where the aligned images are to be written",ang= "directory where the aligned images are to be written",docu= "",statut= "o",into=None,min=4,max=5,val_min='**',val_max='**',defaut=None),
+essaiListeInto=SIMP(typ='TXM',fr= "directory where the aligned images are to be written",ang= "directory where the aligned images are to be written",docu= "",statut= "o",min=4,max=5,val_min='**',val_max='**',into=['a','b','c','d']),
+essaiListeInto2=SIMP(typ='TXM',fr= "directory where the aligned images are to be written",ang= "directory where the aligned images are to be written",docu= "",statut= "o",min=4,max=5,val_min='**',val_max='**',into=['a','b','c','d'],homo="SansOrdreNiDoublon"),
 output_directory=SIMP(typ='Repertoire',fr= "directory where the aligned images are to be written",ang= "directory where the aligned images are to be written",docu= "",statut= "o",into=None,min=1,max=1,val_min='**',val_max='**',defaut=None),
 shift=SIMP(typ='R',fr= "number of pixel each image is to be shifted from the previous one",ang= "number of pixel each image is to be shifted from the previous one",docu= "",statut= "o",into=None,min=1,max=1,val_min='**',val_max='**',defaut=None),
 gui=SIMP(typ=bool,fr= "Run the Graphical User Interface if set to True",ang= "Run the Graphical User Interface if set to True",docu= "",statut= "f",into=None,min=1,max=1,val_min='**',val_max='**',defaut=False),
+ExempleTuple3 = SIMP(statut = 'o',typ = Tuple(3),validators = VerifTypeTuple(('R','R','R')),),
+ExempleTuple2 = SIMP(statut = 'o',typ = Tuple(2),validators = VerifTypeTuple(('R','R')),),
 )
 # ======================================================================
 # Catalog entry for the MAP function : c_image_2d_threshold
@@ -1642,7 +1645,10 @@ crack_aspect_ratio=SIMP(typ='R',fr= "aspect ratio of cracks",ang= "aspect ratio
 S_PROBABILISTIC_STUDY_DATA=PROC(nom='S_PROBABILISTIC_STUDY_DATA',op=None,
 UIinfo ={'groupes':('concrete',)},
 random_seed=SIMP(typ='I',fr= "Random seed",ang= "Random seed",docu= "",statut= "o",into=None,min=1,max=1,val_min='**',val_max='**',defaut=None),
-distributions=SIMP(typ='TXM',fr= "Distribution of each parameter",ang= "Distribution of each parameter",docu= "",statut= "o",into=None,min=1,max='**',val_min='**',val_max='**',defaut=None),
+#distributions=SIMP(typ='TXM',into=['Independent', 'Normal','hhh','hjk'],fr= "Distribution of each parameter",ang= "Distribution of each parameter",docu= "",statut= "o",min=1,max=6,val_min='**',val_max='**'),
+distributions=SIMP(typ='I',into=[1,2,3,4],fr= "Distribution of each parameter",homo="SansOrdreNiDoublon",ang= "Distribution of each parameter",docu= "",statut= "o",min=1,max=6,val_min='**',val_max='**'),
+#distributions=SIMP(typ='I',fr= "Distribution of each parameter",ang= "Distribution of each parameter",docu= "",statut= "o",min=3,max=6,val_min='**',val_max='**'),
+#distributions=SIMP(typ='TXM',into=['Independent', 'Normal','hhh','hjk'],fr= "Distribution of each parameter",ang= "Distribution of each parameter",docu= "",statut= "o",min=1,max='**',val_min='**',val_max='**'),
 dependancy_relationship=SIMP(typ='TXM',fr= "Dependancy relationship for input random parameters",ang= "Dependancy relationship for input random parameters",docu= "",statut= "f",into=['Independent', 'Normal'],min=1,max=1,val_min='**',val_max='**',defaut='Independent'),
 corr_matrix_filename=SIMP(typ=('Fichier', 'All Files (*)'),fr= "Correlation matrix filename",ang= "Correlation matrix filename",docu= "",statut= "f",into=None,min=1,max=1,val_min='**',val_max='**',defaut=None),
 size=SIMP(typ='I',fr= "Size of the experimental design",ang= "Size of the experimental design",docu= "",statut= "o",into=None,min=1,max=1,val_min='**',val_max='**',defaut=None),