🤦 assign `Flow` *after* type check...
parent
e0462f0a8c
commit
723eef3fd6
|
@ -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')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue