tests: don't barf when testing for copyrights in files with less than two lines

If you don't get two lines of code after reading the first 2K of the
file, you don't have a copyright in the file.  copyright_is_valid() was
failing for some files because it only read one line, so lines[1] raised
IndexError.  Catch the exception and make copyright_is_valid() return
properly: the file doesn't have a valid copyright.
1 file changed
tree: 00670b16d59d749c161d10f92ae2a5cc2c44c0ba
  1. doc/
  2. hooks/
  3. scripts/
  4. tests/
  5. trappy/
  6. .dir-locals.el
  7. .gitignore
  8. LICENSE
  9. README.md
  10. setup.cfg
  11. setup.py
README.md

trappy is a visualization tool to help analyze data generated on a device. It depends on ipython notebook and pandas. First install these dependencies if you don't have them already:

$ apt-get install ipython-notebook python-pandas

Now launch the ipython notebook server:

$ ipython notebook

This should pop up a browser. If it doesn't, open a web browser and go to http://localhost:8888/tree/

In the doc/ folder there's a 00 - Quick start which describes how to run trappy. Other notebooks in that directory describe other functions of trappy.