From 92cf47fc2c627870e9eb452df52b041a6398efed Mon Sep 17 00:00:00 2001 From: gboulant <> Date: Tue, 21 Feb 2012 15:29:23 +0000 Subject: [PATCH] maquette pour map depuis eficas --- MAP/map_cata.py | 46 ++++++++++++++++++++++++++++++++++++++++++++++ MAP/prefs_MAP.py | 1 + 2 files changed, 47 insertions(+) create mode 100644 MAP/map_cata.py diff --git a/MAP/map_cata.py b/MAP/map_cata.py new file mode 100644 index 00000000..24f8cbc4 --- /dev/null +++ b/MAP/map_cata.py @@ -0,0 +1,46 @@ +################## +# -*- coding: utf-8 -*- +# +## -------------------------------------------------- +## debut entete +## -------------------------------------------------- +# +from Accas import * +import os +import sys +import types +from prefs_MAP import PATH_MAP + + +class Tuple: + def __init__(self,ntuple): + self.ntuple=ntuple + + def __convert__(self,valeur): + if type(valeur) == types.StringType: + return None + if len(valeur) != self.ntuple: + return None + return valeur + + def info(self): + return "Tuple de %s elements" % self.ntuple + + __repr__=info + __str__=info + +# +#CONTEXT.debug = 1 +JdC = JDC_CATA ( code = 'MAP', + execmodul = None, + #regles=(AU_MOINS_UN('DISPL',),A_CLASSER('RBM','DISPL')) + )# Fin JDC_CATA +s_test01_PARAM=PROC(nom='s_test01_PARAM',op=None, +v=SIMP(typ='TXM',fr='',ang='',statut='o',docu='',into=['1', '2'],min=1,max=1,val_min='**',val_max='**',defaut=None), +) +s_test01_DATA=PROC(nom='s_test01_DATA',op=None, +y=SIMP(typ='R',fr='',ang='',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +x=SIMP(typ='R',fr='',ang='',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +z=SIMP(typ='I',fr='',ang='',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +) + diff --git a/MAP/prefs_MAP.py b/MAP/prefs_MAP.py index aea6917c..802cd9ca 100644 --- a/MAP/prefs_MAP.py +++ b/MAP/prefs_MAP.py @@ -61,6 +61,7 @@ catalogues = ( ('MAP','V1',os.path.join(repIni,'s_DIC_V1.py'),'s_DIC','defaut'), ('MAP','V1',os.path.join(repIni,'s_scc_3d_analysis_V1.py'),'s_scc_3d','defaut'), ('MAP','V1',os.path.join(repIni,'Essai/maquette.py'),'maquette','defaut'), + ('MAP','V1',os.path.join(repIni,'map_cata.py'),'maquettemap','defaut'), ('MAP','V1',os.path.join(repIni,'Essai/comp_c_image_3d.py'),'c_image_3d','defaut'), ('MAP','V1',os.path.join(repIni,'Essai/c_pre_interface_mesh.py.py'),'c_pre_interface_mesh','defaut'), ('MAP','V1',os.path.join(repIni,'Essai/c_post_distribution_properties.py'),'c_post_distribution_properties','defaut'), -- 2.39.2