embedded/raspberry/server/traffic_light/views.py
def load_animation(name: str, color: LEDBoard):
    '''
    Loads an animation from a given name

    Parameters:
    -----------
    name : str
        Name of the animations to be loaded.

    color : LEDBoard
        The board on which the animation should be displayed.
    '''
    with open('server/static/animations/{}.json'.format(name)) as animation_file:
        animation = json.load(animation_file)
        light_controller.display_animation(
            animation['frames'], color, animation['fps'], animation['looped'], STOP_FLAG)

    Loads an animation from a given name

    Parameters:
    -----------
    name : str
        Name of the animations to be loaded.

    color : LEDBoard
        The board on which the animation should be displayed.
    
Loads an animation from a given name
Parameters.

name : str
Name of the animations to be loaded.

color : LEDBoard
The board on which the animation should be displayed.
Loads an animation from a given name Parameters . name : str Name of the animations to be loaded . color : LEDBoard The board on which the animation should be displayed .
def load_animation(name: str, color: LEDBoard):
    with open('server/static/animations/{}.json'.format(name)) as animation_file:
        animation = json.load(animation_file)
        light_controller.display_animation(
            animation['frames'], color, animation['fps'], animation['looped'], STOP_FLAG)
def load_animation ( name : str , color : LEDBoard ) : with open ( 'server/static/animations/{}.json' . format ( name ) ) as animation_file : animation = json . load ( animation_file ) light_controller . display_animation ( animation [ 'frames' ] , color , animation [ 'fps' ] , animation [ 'looped' ] , STOP_FLAG )
Loads an animation from a given name
Parameters:
Loads an animation from a given name Parameters :
'''
    Loads an animation from a given name

    Parameters:
    -----------
    name : str
        Name of the animations to be loaded.

    color : LEDBoard
        The board on which the animation should be displayed.
    '''
name
str
color
LEDBoard