From 05f16a2baa76619ae0c396071b438a39894c2f29 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Tue, 29 May 2018 11:14:19 +0200 Subject: [PATCH] python pour creer le xml des fact imbriques --- Atmo/modele_atmo_test_fact.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 Atmo/modele_atmo_test_fact.py diff --git a/Atmo/modele_atmo_test_fact.py b/Atmo/modele_atmo_test_fact.py new file mode 100755 index 00000000..d5fa7f25 --- /dev/null +++ b/Atmo/modele_atmo_test_fact.py @@ -0,0 +1,33 @@ +import raw.cata_test_fact as mdm +import pyxb +pyxb.GlobalValidationConfig._setContentInfluencesGeneration(pyxb.GlobalValidationConfig.ALWAYS) +pyxb.GlobalValidationConfig._setInvalidElementInContent(pyxb.GlobalValidationConfig.RAISE_EXCEPTION) +pyxb.GlobalValidationConfig._setOrphanElementInContent(pyxb.GlobalValidationConfig.RAISE_EXCEPTION) + +s1=mdm.T_Niveau1SIMP(1) +s2=mdm.T_Niveau2SIMP(2) +s3=mdm.T_Niveau3SIMP(3) +s4=mdm.T_Niveau4SIMP(4) +s5=mdm.T_Niveau3SIMP(5) +s6=mdm.T_Niveau4SIMP(6) + +monF1Niveau3=mdm.T_Niveau3Fact(s4) +monF2Niveau3=mdm.T_Niveau3Fact(s6) +#print monF1Niveau3, monF2Niveau3 + +monF1Niveau2=mdm.T_Niveau2Fact(s3,monF1Niveau3) +#monF1Niveau2.Niveau3Fact=(monF1Niveau3,monF2Niveau3) +#monF1Niveau2.append(s4) +#monF1Niveau2.append(monF2Niveau3) +#monF1Niveau2=mdm.T_Niveau2Fact(s3,monF1Niveau3,s4,monF2Niveau3) + +#monF1Niveau2=mdm.T_Niveau2Fact() +print (dir(monF1Niveau2)) +print monF1Niveau2.Niveau3Fact + + + +#my_Atmos=mdm.Atmos(my_Wind) +#xmls=my_Atmos.toxml() +#xmls=my_Atmos.toDOM().toprettyxml() + -- 2.39.2