def run(self, visual=True): self.visual = visual if (visual): self.v = visualization.show_visual(self.m, self.mov) self.v.show() else: for i in self.mov(): return i
def show_traj(self): #read a python traj self.traj = M_list.read(target='traj.json') self.v = visualization.show_visual(self.m, self.mov) self.v.show_traj(self.traj)
def show_test(self, path): self.v = visualization.show_visual(self.m, self.mov) self.v.show_test(path)
def __init__(self, window): self.window = window self.v = visualization.show_visual(map) self.fig = self.v.draw() self.first = True self.plot()