Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Rendering render_300.
- Render complete.
- 300: Simulation onging.
- ---------------------------------------------------------------------------
- IndexError Traceback (most recent call last)
- <ipython-input-3-1a3886c69bc9> in <module>()
- 86 return s
- 87
- ---> 88 get_ipython().run_line_magic('prun', 's = limited()')
- ~\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
- 2129 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
- 2130 with self.builtin_trap:
- -> 2131 result = fn(*args,**kwargs)
- 2132 return result
- 2133
- <decorator-gen-57> in prun(self, parameter_s, cell)
- ~\Anaconda3\lib\site-packages\IPython\core\magic.py in <lambda>(f, *a, **k)
- 185 # but it's overkill for just that one bit of state.
- 186 def magic_deco(arg):
- --> 187 call = lambda f, *a, **k: f(*a, **k)
- 188
- 189 if callable(arg):
- ~\Anaconda3\lib\site-packages\IPython\core\magics\execution.py in prun(self, parameter_s, cell)
- 300 arg_str += '\n' + cell
- 301 arg_str = self.shell.input_splitter.transform_cell(arg_str)
- --> 302 return self._run_with_profiler(arg_str, opts, self.shell.user_ns)
- 303
- 304 def _run_with_profiler(self, code, opts, namespace):
- ~\Anaconda3\lib\site-packages\IPython\core\magics\execution.py in _run_with_profiler(self, code, opts, namespace)
- 322 prof = profile.Profile()
- 323 try:
- --> 324 prof = prof.runctx(code, namespace, namespace)
- 325 sys_exit = ''
- 326 except SystemExit:
- ~\Anaconda3\lib\cProfile.py in runctx(self, cmd, globals, locals)
- 98 self.enable()
- 99 try:
- --> 100 exec(cmd, globals, locals)
- 101 finally:
- 102 self.disable()
- <string> in <module>()
- <ipython-input-3-1a3886c69bc9> in limited()
- 80
- 81 while True:
- ---> 82 if not s.process_next_event():
- 83 break
- 84
- ~\Documents\senkaku_sim\lib\simulation.py in process_next_event(self)
- 52 time, _, func = heappop(self.event_queue)
- 53 if self.last_event_time != time:
- ---> 54 render_time = self.render_times[self.num_renders_written]
- 55 if time >= render_time:
- 56 self.num_renders_written += 1
- IndexError: list index out of range
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement