Skip to content

Commit 4db2f60

Browse files
committed
fix: #32 operands could not be broadcast together with shapes
1 parent 2767373 commit 4db2f60

File tree

3 files changed

+35
-43
lines changed

3 files changed

+35
-43
lines changed

pglive/sources/live_categorized_bar_plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def getData(self):
113113

114114
def data_bounds(self, ax: int = 0, offset: int = 0) -> Tuple:
115115
if ax == 0:
116-
if self.x_data == []:
116+
if self.x_data is []:
117117
return 0, 0
118118
sub_range = self.x_data[-offset:]
119119
return np.nanmin(sub_range), np.nanmax(sub_range)
@@ -123,7 +123,7 @@ def data_bounds(self, ax: int = 0, offset: int = 0) -> Tuple:
123123

124124
def data_tick(self, ax: int = 0):
125125
if ax == 0:
126-
if self.x_data == []:
126+
if self.x_data is []:
127127
return 0, 0
128128
return self.x_data[0] if len(self.x_data) == 1 else self.x_data[-1] - self.x_data[0]
129129
else:

poetry.lock

Lines changed: 32 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pglive"
3-
version = "0.7.1"
3+
version = "0.7.2"
44
description = "Pyqtgraph live plot"
55
authors = ["Martin Domaracky <domarm@comat.sk>"]
66
license = "MIT"

0 commit comments

Comments
 (0)