MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / update

Function update

physics/n_body_simulation.py:242–244  ·  view source on GitHub ↗
(frame: int)

Source from the content-addressed store, hash-verified

240
241 # Function called at each step of the animation
242 def update(frame: int) -> list[plt.Circle]: # noqa: ARG001
243 update_step(body_system, DELTA_TIME, patches)
244 return patches
245
246 anim = animation.FuncAnimation( # noqa: F841
247 fig, update, interval=INTERVAL, blit=True

Callers

nothing calls this directly

Calls 1

update_stepFunction · 0.85

Tested by

no test coverage detected