commit | fb2127422317ed2ed5dbc164be88dfc2cb243edd | [log] [tgz] |
---|---|---|
author | Javi Merino <javi.merino@arm.com> | Tue Mar 08 11:55:23 2016 +0000 |
committer | Javi Merino <javi.merino@arm.com> | Tue Mar 08 11:55:23 2016 +0000 |
tree | 18895412ee0d809124ed84a5101e3737f0fd4ad9 | |
parent | 541c887c9db1e92fc6dc3cc159ed3cb4a3f7a6a0 [diff] |
tests: fix test_filter_prev_values expected result pandas 0.17.1 has a more accurate assert_series_equal() that makes test_filter_prev_values fail because the index name is different: ====================================================================== FAIL: Trigger works with a filter that depends on previous values of the same pivot ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/javi/src/trappy/tests/test_stats.py", line 227, in test_filter_prev_values assert_series_equal(expected, trigger.generate("blank")) File "/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 924, in assert_series_equal obj='{0}.index'.format(obj)) File "/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 694, in assert_index_equal assert_attr_equal('names', left, right, obj=obj) File "/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 729, in assert_attr_equal left_attr, right_attr) File "/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 819, in raise_assert_detail raise AssertionError(msg) AssertionError: Series.index are different Attribute "names" are different [left]: [u'Time'] [right]: [None] ---------------------------------------------------------------------- The series that trigger generates don't have a name for the index. Remove the named index from the expected output so that the test passes again.
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.