Example #1
0
 def test_rendering(self):
     start_time = datetime(2018, 1, 1, 0, 0, 0)
     viewer = Viewer(start_time, 'adolescent#001')
     for i in range(len(self.df)):
         df_tmp = self.df.iloc[0:(i + 1), :]
         viewer.render(df_tmp)
     viewer.close()
Example #2
0
    def render(self, close=False):
        if close:
            if self.viewer is not None:
                self.viewer.close()
                self.viewer = None
            return

        if self.viewer is None:
            self.viewer = Viewer(self.scenario.start_time, self.patient.name)

        self.viewer.render(self.show_history())
    def render(self, close=False):
        if close:
            if self.viewer is not None:
                self.viewer.close()
                self.viewer = None
            return

        if self.viewer is None:
            self.viewer = Viewer(self.scenario.start_time,
                                 self.patient.name,
                                 self.controller_name,
                                 save_path=self.results_path)

        self.viewer.render(self.show_history())