Merge pull request #22 from michaellass/check_bincount
Check bincount in data coming from backend
This commit is contained in:
commit
12da1d6626
@ -105,6 +105,10 @@ class DataStorage(QtCore.QObject):
|
|||||||
|
|
||||||
def update(self, data):
|
def update(self, data):
|
||||||
"""Update data storage"""
|
"""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
|
self.average_counter += 1
|
||||||
|
|
||||||
if self.x is None:
|
if self.x is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user