🤦 assign `Flow` *after* type check...

windows_fixes_yo
Tyler Goodlet 2022-02-09 16:00:10 -05:00
parent e0462f0a8c
commit 723eef3fd6
1 changed files with 3 additions and 3 deletions

View File

@ -995,9 +995,6 @@ class ChartPlotWidget(pg.PlotWidget):
# TODO: this probably needs its own method? # TODO: this probably needs its own method?
if overlay: if overlay:
# anchor_at = ('bottom', 'left')
self._flows[name] = Flow(name=name, plot=pi)
if isinstance(overlay, pg.PlotItem): if isinstance(overlay, pg.PlotItem):
if overlay not in self.pi_overlay.overlays: if overlay not in self.pi_overlay.overlays:
raise RuntimeError( raise RuntimeError(
@ -1005,6 +1002,9 @@ class ChartPlotWidget(pg.PlotWidget):
) )
pi = overlay pi = overlay
# anchor_at = ('bottom', 'left')
self._flows[name] = Flow(name=name, plot=pi)
else: else:
# anchor_at = ('top', 'left') # anchor_at = ('top', 'left')