diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 0000000..fee9ad5 --- /dev/null +++ b/INSTALL.md @@ -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 diff --git a/main.py b/main.py index 512f912..f78fc2f 100644 --- a/main.py +++ b/main.py @@ -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') diff --git a/temp_log.py b/temp_log.py index d245daf..6b0f6b1 100755 --- a/temp_log.py +++ b/temp_log.py @@ -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: