various changes

This commit is contained in:
Kienan Stewart 2015-08-12 18:28:08 -04:00
parent 711553d4d8
commit 572626e776
3 changed files with 22 additions and 3 deletions

19
INSTALL.md Normal file
View File

@ -0,0 +1,19 @@
= Debian 8 (Jessie) =
*Note*: This is not the recommended way of doing it. Ideally, there should be a virtual environment (venv) setup.
sudo apt-get install python-serial python-numpy python-matplotlib python-pip python-dev
sudo pip install cython
sudo apt-get install libgl1-mesa-dev \
libsdl-image1.2-dev \
libsdl-mixer1.2-dev \
libsdl-ttf2.0-dev \
libsmpeg-dev \
libsdl1.2-dev \
libportmidi-dev \
libswscale-dev \
libavformat-dev \
libavcodec-dev \
zlib1g-dev
sudo pip install kivy==1.9 --upgrade

View File

@ -77,7 +77,7 @@ class MainWindow(FloatLayout):
image_output_file = StringProperty('')
raw_data_output_file = StringProperty('')
reference_profile_file = StringProperty('')
lastData = ListProperty([])
lastData = ListProperty(list())
def __init__(self, **kwargs):
@ -116,7 +116,7 @@ class MainWindow(FloatLayout):
if 'time' in last_point:
self.lastTime = float(last_point['time'])
if 'exception' in last_point:
self.lastStatus = {'status' : 'error', 'message' : data['exception']}
self.lastStatus = {'status' : 'error', 'message' : last_point['exception']}
self.lastData = data
#if dataThreadDataQueue.qsize():
# Logger.debug('update_last_temperature: ' + str(dataThreadDataQueue.qsize()) + ' items left in queue after ' + str(len(data)) + ' items were taken out')

View File

@ -40,7 +40,7 @@ class ParseException(Exception):
def parse_line(line, version = defaultVersion):
"""Parses a line and returns an array index by name of the data available"""
# @TODO This could be a class based versioning?
data = {}
data = dict()
if (version == 0):
line = line.split(' ')
try: