ampy.animation

Module provides different tools for manipulation with AMPy output visualization

ampy.animation.create_dashboard(video: list, output_name: str, cart_disp: list, boo: list, stcp: list, cl_coeff: list, distance: list, angle: list, angle_abs: list, fps: int) None

Creates .gif with simulteneous evolution of the system parameters along with the original video

Parameters:
  • video – list of the frames from the get_video method output

  • output_name – name of the output file

  • cart_disp – cartesian displacement

  • boo – bond orientational order parameter

  • stcp – spatio-temporal correlation parameter

  • cl_coeff – clustering coefficient

  • distance – mean distance from the center

  • angle – mean polar angle

  • angle_abs – absolute value of the mean polar angle

  • fps – frames per second

ampy.animation.draw_markers(frames: list, marker_type: str = 'DICT_7X7_1000') list

Returns the list with the frames and highlighted markers.

Parameters:
  • frames – list of the frames from the ‘get_video’ method output

  • marker_type – robots’ marker type