Exit `.maxmin()` early on non-yet-registered array lookup

windows_fixes_yo
Tyler Goodlet 2022-02-06 13:23:54 -05:00
parent 9490129a74
commit a006b87546
1 changed files with 4 additions and 1 deletions

View File

@ -1164,7 +1164,10 @@ class ChartPlotWidget(pg.PlotWidget):
# 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']
bars = a[lbar - ifirst:rbar - ifirst + 1]