GithubHelp home page GithubHelp logo

ak15199 / rop Goto Github PK

View Code? Open in Web Editor NEW
18.0 6.0 6.0 687 KB

ROP is a simple and extensible framework to display a set of art demos on an LED array (such as FadeCandy) or in ASCII Art on a terminal, and includes a 2D drawing primitive implementation.

License: GNU General Public License v3.0

Python 97.71% HTML 2.29%
art fadecandy leds animation raspberry-pi opc

rop's Issues

Problem with non square arrays and some arts.

Some art have problems with non-square buffers. I'm not sure if this is an issue in buffer, DiamondSquare, or terrian specifically, but here's a trace for you:

This is with a 25x50 pixel array ( https://github.com/zestyping/openpixelcontrol/blob/master/layouts/wall.json )

ERROR:root:Exception: Traceback (most recent call last):
ERROR:root:Exception:   File "art.py", line 159, in <module>
    main()
ERROR:root:Exception:   File "art.py", line 149, in main
    run(arts, args)
ERROR:root:Exception:   File "/Users/tgerdes/rop/opc/utils/prof.py", line 105, in f_timer
    return f(*args, **kwargs)
ERROR:root:Exception:   File "art.py", line 69, in run
    art.refresh(matrix)
ERROR:root:Exception:   File "/Users/tgerdes/rop/art/terrain.py", line 66, in refresh
    matrix.copy(self.matrix, x, y)
ERROR:root:Exception:   File "/Users/tgerdes/rop/opc/utils/prof.py", line 105, in f_timer
    return f(*args, **kwargs)
ERROR:root:Exception:   File "/Users/tgerdes/rop/opc/matrix.py", line 139, in copy
    self.buf.panCopy(source.buf, x, y)
ERROR:root:Exception:   File "/Users/tgerdes/rop/opc/utils/prof.py", line 105, in f_timer
    return f(*args, **kwargs)
ERROR:root:Exception:   File "/Users/tgerdes/rop/opc/buffer.py", line 114, in panCopy
    self.buf[:][:] = window
ERROR:root:Exception: ValueError: could not broadcast input array from shape (26,50,3) into shape (25,50,3)

terminal too small throws a silent exception

Opening up a new terminal window in iTerm2 defaults (for me) to 80x25. When I run art.py in that window the program immediately exits without any feedback. Looking at at art.log

ERROR:root:Exception: Traceback (most recent call last):
ERROR:root:Exception: File "art.py", line 50, in
main()
ERROR:root:Exception: File "art.py", line 46, in main
matrix.show()
ERROR:root:Exception: File "/Users/bkuo/work/rop/opc/matrix.py", line 212, in show
self.ansi.show(pixels)
ERROR:root:Exception: File "/Users/bkuo/work/rop/opc/ansiclient.py", line 149, in show
stdscr.addstr(" | \n")
ERROR:root:Exception: error: addstr() returned ERR

The terminal window needs to be a bit bigger so it can display. Let's get a better error message to the user.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.