Exit `.maxmin()` early on non-yet-registered array lookup
parent
9490129a74
commit
a006b87546
|
@ -1164,7 +1164,10 @@ class ChartPlotWidget(pg.PlotWidget):
|
||||||
# f"begin: {begin}, end: {end}, extra: {extra}"
|
# f"begin: {begin}, end: {end}, extra: {extra}"
|
||||||
# )
|
# )
|
||||||
|
|
||||||
a = self._arrays[name or self.name]
|
a = self._arrays.get(name or self.name)
|
||||||
|
if a is None:
|
||||||
|
return None
|
||||||
|
|
||||||
ifirst = a[0]['index']
|
ifirst = a[0]['index']
|
||||||
bars = a[lbar - ifirst:rbar - ifirst + 1]
|
bars = a[lbar - ifirst:rbar - ifirst + 1]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue