diff --git a/philosopher_example/controleurPhilosophersExample.py b/philosopher_example/controleurPhilosophersExample.py index 016961cbbb6071e668b296c2db63fcbc1fcc80b5..b9e4373d9ba3777c3d94cb18dbe5e91c3b2e13f0 100644 --- a/philosopher_example/controleurPhilosophersExample.py +++ b/philosopher_example/controleurPhilosophersExample.py @@ -47,7 +47,7 @@ class ControleurPhilosophersExample(Controleur): self.addColumn(self.__barChart[1],nom) self.addColumn(self.__barChart[2],nom) - def updateCycle(self, env, amas): + def updateWindow(self, env, amas): agents = amas.get_Agents_Sorted() for i in range(10): diff --git a/philosopher_example/philosophersAmasExample.py b/philosopher_example/philosophersAmasExample.py index 513b8e31c52bc760d923531c4e11a43d2f95d038..83fee56a53a2e390ae46a87885772736dd3dad36 100644 --- a/philosopher_example/philosophersAmasExample.py +++ b/philosopher_example/philosophersAmasExample.py @@ -35,7 +35,4 @@ class PhilosophersAmasExamples(Amas): self.__observer = observer def on_cycle_end(self): - try: - self.__observer.updateCycle(self.get_environment(), self) - except: - print('trql trql') + self.__observer.updateCycle(self.get_environment(), self)