From 95e5b915b5d59897397c33ffffeaf18c4139f4df Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Tue, 17 Mar 2009 10:06:07 +0000 Subject: [PATCH] *** empty log message *** --- generator/generator_cuve2dg.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/generator/generator_cuve2dg.py b/generator/generator_cuve2dg.py index b1c91e2c..1e616ce9 100644 --- a/generator/generator_cuve2dg.py +++ b/generator/generator_cuve2dg.py @@ -100,8 +100,10 @@ class Cuve2dgGenerator(PythonGenerator): self.texteCuve+="############################################################################################"+"\n" self.texteCuve+="# OPTIONS : Fichier Option.don"+"\n" self.texteCuve+="############################################################################################"+"\n" - self.texteCuve+="INCRTPS = "+ str(self.dico_mot["IncrementTemporel"])+"\n" - self.imprime(2,(self.dico_mot["ProfilTemporel_Pression"])) + if self.dico_mot.has_key('IncrementTemporel'): + self.texteCuve+="INCRTPS = "+ str(self.dico_mot["IncrementTemporel"])+"\n" + if self.dico_mot.has_key('ProfilTemporel_Pression'): + self.imprime(2,(self.dico_mot["ProfilTemporel_Pression"])) def imprime(self,nbdeColonnes,valeur): -- 2.39.2