def str_to_maze(str):
    """Return a maze array from a string representation."""
    maze = numpy.array([list(ln.strip()) for ln in str.splitlines()
                        if len(ln.strip()) > 1])
    return maze
dataset/ETHPy150Open ASPP/pelita/layouts/maze_generator.py/str_to_maze/original