Git Product home page Git Product logo

rop's People

Contributors

ak15199 avatar e4r7hbug avatar mbbx6spp avatar tgerdes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rop's Issues

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.

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)

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.