Merge pull request #22 from michaellass/check_bincount

Check bincount in data coming from backend
This commit is contained in:
Michal Krenek (Mikos) 2017-03-24 21:02:10 +01:00 committed by GitHub
commit 12da1d6626

View File

@ -105,6 +105,10 @@ class DataStorage(QtCore.QObject):
def update(self, data):
"""Update data storage"""
if self.y is not None and len(data["y"]) != len(self.y):
print("{:d} bins coming from backend, expected {:d}".format(len(data["y"]), len(self.y)))
return
self.average_counter += 1
if self.x is None: