--- /dev/null
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+import os, re
+import Accas
+from Accas import *
+
+JdC = JDC_CATA (
+ code = 'Map2',
+ )
+VERSION_CATALOGUE='V_0'
+
+
+Experiences = PROC(nom = 'experiences',
+
+ description = SIMP(statut='o', typ='TXM', defaut=''),
+ experience = FACT(statut='o', max = "**",
+ experience_Name = SIMP (statut='o', typ='TXM'),
+ source = SIMP(statut='o', typ='TXM', into=['File','Dico','Value']),
+ b_source_file = BLOC(condition="source == 'File'",
+ exp_file = SIMP(statut = "o", typ = 'Fichier'),
+ ),
+ b_source_valeur = BLOC(condition="source == 'Value'",
+ exp_value = SIMP(statut = "o", typ = 'R'),
+ ),
+ b_source_dico = BLOC(condition="source == 'Dico'",
+ exp_dico = SIMP(statut = "o", typ = 'TXM'),
+ ),
+ Associated_simulation_step_number = SIMP(statut='o', typ='I', val_min=1),
+ dependancy = FACT( statut='o',
+ type_dependancy= SIMP(statut='o',
+ typ='TXM', into=['temperature','moisture','irradiation']),
+ source = SIMP(statut='o', typ='TXM', into=['File','Dico','Value']),
+ b_source_file = BLOC(condition="source == 'File'",
+ exp_file = SIMP(statut = "o", typ = 'Fichier'),),
+ b_source_valeur = BLOC(condition="source == 'Value'",
+ exp_value = SIMP(statut = "o", typ = 'R'),),
+ b_source_dico = BLOC(condition="source == 'Dico'",
+ exp_dico = SIMP(statut = "o", typ = 'TXM'),),
+ ),
+ ),
+ dimensions= FACT( statut = 'f',
+ diameter = SIMP(statut='o', typ='R', val_min = 0),
+ thickness = SIMP(statut='o', typ='R', val_min = 0),
+ number_elements = SIMP(statut='o', typ='I', val_min = 0),
+ ),
+ type_experience = SIMP(statut='o', typ='TXM',
+ into=['tension','creep','relaxation','cyclic','cyclic_stab','tube']),
+)
+
+
+TEXTE_NEW_JDC = 'Experiences()'
+
+
+
+
--- /dev/null
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+import os, re
+import Accas
+from Accas import *
+from datetime import datetime
+from mapcore import getVersion
+from prefs_Map2 import catalogues_param, catalogues_exp
+
+JdC = JDC_CATA (
+ code = 'MAP_c_solver_constitutive_law_0d',
+ )
+VERSION_CATALOGUE='2018.1.beta'
+
+def openNewXmlExp(monMC):
+
+ monMC.jdc.appli.appliEficas.maConfiguration.catalogues = catalogues_exp
+ monMC.jdc.appli.appliEficas.viewmanager.newEditor()
+
+def openNewXmlParam(monMC):
+ #monMC.jdc.appli.appliEficas.maConfiguration.catalogues = catalogues_param
+ monMC.jdc.appli.appliEficas.viewmanager.newEditor()
+
+# =======================================================================
+# Catalog entry for the MAP function : c_solver_constitutive_law_0d
+# =======================================================================
+
+MAP_input_file = PROC(nom = 'Input file for MAP',
+
+# -----------------------------------
+ MAP_Version = SIMP(statut='o', typ='TXM', defaut=getVersion()),
+# -----------------------------------
+ output_directory = SIMP(statut='f',
+ typ='Repertoire',
+ defaut=os.path.join(
+ os.path.dirname(os.getcwd()),
+ datetime.now().strftime("%Y%m%d-%H%M")),
+ ),
+# -----------------------------------
+ constitutive_law_formulation = SIMP(statut='f', typ='TXM'),
+# -----------------------------------
+ constitutive_law_parameters_status = SIMP(statut='o', typ='TXM',
+ into=['Existing', 'New'],
+ #defaut='New'
+ ),
+# -----------------------------------
+ b_constitutive_law_parameters_existing = BLOC(
+ condition="constitutive_law_parameters_status == 'Existing'",
+ constitutive_law_parameters = SIMP(
+ statut = "o",
+ typ = ('Fichier', 'Wrapper Files (*.xml);;All Files (*)'),
+ )
+ ),
+# -----------------------------------
+ b_constitutive_law_parameters_new = BLOC(
+ condition="constitutive_law_parameters_status == 'New'",
+ constitutive_law_parameters = SIMP(
+ statut = "o",
+ typ = ('FichierNoAbs', 'Wrapper Files (*.xml);;All Files (*)'),
+ siValide=openNewXmlParam,
+ )
+ ),
+
+# -----------------------------------
+ user_defined_mfront_file_directory = SIMP(statut='f',
+ typ='Repertoire',
+ defaut=os.path.join(
+ os.getenv('TFELHOME'),
+ "share/mfront/tests",
+ "behaviours"),
+ ),
+# -----------------------------------
+ exp_filename_list_status = SIMP(statut='o',
+ typ='TXM',
+ into=['Existing', 'New'],
+ #defaut='New'
+ ),
+# -----------------------------------
+ b_exp_filename_list_existing = BLOC(
+ condition="exp_filename_list_status == 'Existing'",
+ exp_filename_list = SIMP(
+ statut = "o",
+ typ = ('Fichier', 'Wrapper Files (*.xml);;All Files (*)'),
+ )
+ ),
+# -----------------------------------
+ b_exp_filename_list_new = BLOC(
+ condition="exp_filename_list_status == 'New'",
+ exp_filename_list = SIMP(
+ statut = "o",
+ typ = ('FichierNoAbs', 'Wrapper Files (*.xml);;All Files (*)'),
+ siValide=openNewXmlExp,
+ )
+ )
+)
+
+
+
+TEXTE_NEW_JDC = 'MAP_input_file()'
--- /dev/null
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#import os
+#import re
+#import Accas
+import types
+from Accas import *
+from mapcore import getVersion
+
+JdC = JDC_CATA(code='MAP_c_solver_constitutive_law_0d_exp')
+
+VERSION_CATALOGUE = '2018.1.beta'
+
+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
+
+
+
+# =======================================================================
+# Catalog entry for the experiences plan
+# =======================================================================
+
+Experiences = PROC(nom='Experiences',
+
+ #-----------------------------------
+ MAP_Version = SIMP(statut='o', typ='TXM', defaut=getVersion()),
+ #-----------------------------------
+ Description = SIMP(statut='f', typ='TXM'),
+ #-----------------------------------
+ Experience = FACT(statut='o', max="**",
+ #-----------------------------------
+ ExperienceName = SIMP(statut='o', typ='TXM'),
+ #-----------------------------------
+ Type = SIMP(statut='o',
+ typ='TXM',
+ into=['tension', 'creep', 'relaxation', 'cyclic',
+ 'cyclic_stab', 'tube', 'tube_ecroui_relax'],
+ fr = """description en francais""",
+ ang = """English description"""),
+ #-----------------------------------
+ b_type = BLOC(condition="Type == 'cyclic_stab'",
+ NumberOfCycles = SIMP(statut="o", typ=('I'), defaut=10),
+ ),
+ #-----------------------------------
+ Observations = SIMP(statut='o',
+ typ='TXM',
+ into=['File', 'List'],
+ defaut='File'),
+ #-----------------------------------
+ b_obs_file = BLOC(condition="Observations == 'File'",
+ ObservationsFilename = SIMP(
+ statut="o",
+ typ=('Fichier',
+ 'Wrapper Files (*.edf);;All Files (*)'),
+ ),
+ ),
+ #-----------------------------------
+ b_obs_list = BLOC(condition="Observations == 'List'",
+ ObservationsList = SIMP(
+ fenetreIhm='Tableau',
+ homo=('TIME', 'DATA'),
+ statut='o',
+ min=2,
+ max='**',
+ typ=Tuple(2),
+ validators=VerifTypeTuple(('R', 'R')),
+ ),
+ ),
+ #-----------------------------------
+ Geometry = FACT(statut='f',
+ #-----------------------------------
+ Height = SIMP(statut='o', typ='R', val_min=0),
+ #-----------------------------------
+ Radius = SIMP(statut='o', typ='R', val_min=0),
+ ),
+ #-----------------------------------
+ InitialState = FACT(statut='f',
+ #-----------------------------------
+ InternalStateVariable = FACT(statut='o', max="**",
+ #-----------------------------------
+ InternalStateVariableName = SIMP(statut='o', typ='TXM'),
+ ),
+ ),
+ #-----------------------------------
+ ExperimentalConditions = FACT(statut='f',
+ #-----------------------------------
+ PrescribedThermodynamicStateVariable = FACT(statut='o', max="**",
+ #-----------------------------------
+ VariableName = SIMP(statut='o', typ='TXM'),
+ Source = SIMP(statut='o',
+ typ='TXM',
+ into=['File','List'],
+ defaut='File'),
+ #-----------------------------------
+ b_source = BLOC(condition="Source == 'File'",
+ Filename = SIMP(
+ statut = "o",
+ typ = ('Fichier',
+ 'Wrapper Files (*.edf);;All Files (*)'),
+ ),
+ ),
+ #-----------------------------------
+ b_obs_list = BLOC(condition="Source == 'List'",
+ List = SIMP(
+ fenetreIhm='Tableau',
+ homo=('TIME', 'DATA'),
+ statut='o',
+ min=2,
+ max='**',
+ typ=Tuple(2),
+ validators=VerifTypeTuple(('R', 'R')),
+ ),
+ ),
+ ),
+ ),
+ #-----------------------------------
+ PreProcessing = FACT(statut='o',
+ #-----------------------------------
+ AssossiatedSimulationStepNumber = SIMP(statut='o',
+ typ='I',
+ val_min=0),
+ ),
+ #-----------------------------------
+ PostProcessing = FACT(statut='f',
+ #-----------------------------------
+ PrintStateVariable = FACT(statut='f', max="**",
+ #-----------------------------------
+ PostProcessingVariableName = SIMP(statut='o', typ='TXM'),
+ ),
+ )
+ )
+)
+
+TEXTE_NEW_JDC = 'Experiences()'
--- /dev/null
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+import os, re
+import Accas
+from Accas import *
+from mapcore import getVersion
+
+JdC = JDC_CATA (
+ code = 'MAP_c_solver_constitutive_law_0d_param',
+ )
+VERSION_CATALOGUE='2018.1.beta'
+
+# =======================================================================
+# Catalog entry for the list of material parameters
+# =======================================================================
+
+Parameters_list = PROC(nom = 'List of material parameters',
+
+# -----------------------------------
+ MAP_Version = SIMP(statut='o', typ='TXM', defaut=getVersion()),
+# -----------------------------------
+ Description = SIMP(statut='f', typ='TXM', defaut=''),
+# -----------------------------------
+ Law = SIMP(statut='o', typ='TXM', defaut=''),
+# -----------------------------------
+ Parameter = FACT(statut='o', max="**",
+# -----------------------------------
+ Name = SIMP (statut='o', typ='TXM'),
+# -----------------------------------
+ Type = SIMP(statut='o', typ='TXM', into=["MaterialProperty",
+ "ExternalStateVariable",
+ "Parameter", "comm"]),
+# -----------------------------------
+ Value = SIMP(statut='o', typ='R'),
+# -----------------------------------
+ Adjustement = SIMP(statut='o', typ=bool), # TODO: case a cocher ou decocher
+# -----------------------------------
+ Lower_bound = SIMP(statut='f', typ='R', val_min=0), #TODO: rule: inf < sup
+# -----------------------------------
+ Upper_bound = SIMP(statut='f', typ='R', val_min=0), #TODO: rule: inf < sup
+ ),
+)
+
+TEXTE_NEW_JDC = 'Parameters_list()'
+
+
+
--- /dev/null
+# -*- coding: utf-8 -*-\r
+# maConfiguration MANAGEMENT OF EDF VERSION\r
+# ======================================================================\r
+# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG\r
+# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY\r
+# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY\r
+# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR\r
+# (AT YOUR OPTION) ANY LATER VERSION.\r
+#\r
+# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT\r
+# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF\r
+# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU\r
+# GENERAL PUBLIC LICENSE FOR MORE DETAILS.\r
+#\r
+# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE\r
+# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,\r
+# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.\r
+#\r
+#\r
+# ======================================================================\r
+"""\r
+ Ce module sert pour charger les paramètres de configuration d'EFICAS\r
+"""\r
+# Modules Python\r
+from InterfaceQT4 import configuration\r
+import os\r
+\r
+\r
+class CONFIG(configuration.configBase):\r
+\r
+ #-----------------------------------\r
+ def __init__(self,appli,repIni):\r
+ #-----------------------------------\r
+\r
+ self.labels_user=['catalogues','lang']\r
+ self.labels_eficas=['lang','rep_cata','catalogues']\r
+ self.afficheOptionnelVide=True\r
+ configuration.configBase.__init__(self,appli,repIni)\r
+\r
+\r
+def make_config(appli,rep):\r
+ return CONFIG(appli,rep)\r
+\r
--- /dev/null
+# Copyright (C) 2007-2012 EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+code="Map2"
+import sys, os
+if os.path.dirname(os.path.abspath(__file__)) not in sys.path :
+ sys.path.insert(0,os.path.dirname(os.path.abspath(__file__)))
--- /dev/null
+# -*- coding: utf-8 -*-
+# maConfiguration MANAGEMENT OF EDF VERSION
+# ======================================================================
+# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG
+# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
+# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
+# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
+# (AT YOUR OPTION) ANY LATER VERSION.
+#
+# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
+# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
+# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
+# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
+#
+# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
+# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
+# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
+#
+#
+# ======================================================================
+
+import os,sys
+# repIni sert a localiser le fichier editeur.ini
+# Obligatoire
+repIni=os.path.dirname(os.path.abspath(__file__))
+INSTALLDIR=os.path.join(repIni,'..')
+sys.path[:0]=[INSTALLDIR]
+
+
+# lang indique la langue utilisee pour les chaines d'aide : fr ou ang
+lang='fr'
+
+# Codage des strings qui accepte les accents (en remplacement de 'ascii')
+encoding='iso-8859-1'
+
+#
+#typeDeCata='XML'
+catalogues=(
+ ('Map2','MAP file',os.path.join(repIni,'cata_map_cl0d.py'),'python','python'),
+ ('Map2','Experiences plan',os.path.join(repIni,'cata_map_cl0d_exp.py'),'python','python'),
+ ('Map2','Material parameters',os.path.join(repIni,'cata_map_cl0d_param.py'),'python','python'),
+
+)
+catalogues_exp=(
+ ('Map2','Experiences plan',os.path.join(repIni,'cata_map_cl0d_exp.py'),'python','python'),
+)
+catalogues_param=(
+ ('Map2','Material parameters',os.path.join(repIni,'cata_map_cl0d_param.py'),'python','python'),
+)
+#nombreDeBoutonParLigne=4
+simpleClic=True
+closeFrameRechercheCommande=True
+boutonDsMenuBar=False
+closeArbre=True
+afficheListesPliees=False
+afficheCommandesPliees = False
+#dumpXSD=True
+#afficheIhm=False
--- /dev/null
+#@ MODIF properties Accas DATE 11/06/2008 AUTEUR aster M.ADMINISTRATEUR
+# RESPONSABLE D6BHHHH J-P.LEFEBVRE
+# ======================================================================
+# COPYRIGHT (C) 1991 - 2001 EDF R&D WWW.CODE-ASTER.ORG
+# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
+# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
+# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
+# (AT YOUR OPTION) ANY LATER VERSION.
+#
+# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
+# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
+# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
+# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
+#
+# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
+# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
+# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
+# ======================================================================
+# IDENTIFICATION DU GESTIONNAIRE DE COMMANDE ACCAS A PARTIR
+# DE LA VERSION DU CODE_ASTER ASSOCIE
+#----------------------------------------------------------------------
+version = "1.2"
+date = "25/05/2010"
+exploit = False
--- /dev/null
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# Copyright (C) 2007-2013 EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+"""
+ Ce module sert a lancer EFICAS configure pour MAP
+"""
+# Modules Python
+# Modules Eficas
+import prefs
+name='prefs_'+prefs.code
+__import__(name)
+
+import sys
+reload(sys)
+sys.setdefaultencoding('latin1')
+import os
+sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'..'))
+
+import prefs
+from InterfaceQT4 import eficas_go
+eficas_go.lanceEficas(code=prefs.code)