Put mxmn profile mapping at end of method
parent
04c12a756c
commit
dc4a0a6fd2
|
@ -1283,7 +1283,7 @@ class ChartPlotWidget(pg.PlotWidget):
|
||||||
flow is None
|
flow is None
|
||||||
):
|
):
|
||||||
log.error(f"flow {flow_key} doesn't exist in chart {self.name} !?")
|
log.error(f"flow {flow_key} doesn't exist in chart {self.name} !?")
|
||||||
res = 0, 0
|
key = res = 0, 0
|
||||||
|
|
||||||
else:
|
else:
|
||||||
first, l, lbar, rbar, r, last = bars_range or flow.datums_range()
|
first, l, lbar, rbar, r, last = bars_range or flow.datums_range()
|
||||||
|
@ -1291,11 +1291,11 @@ class ChartPlotWidget(pg.PlotWidget):
|
||||||
|
|
||||||
key = round(lbar), round(rbar)
|
key = round(lbar), round(rbar)
|
||||||
res = flow.maxmin(*key)
|
res = flow.maxmin(*key)
|
||||||
profiler(f'yrange mxmn: {key} -> {res}')
|
|
||||||
if res == (None, None):
|
if res == (None, None):
|
||||||
log.error(
|
log.error(
|
||||||
f"{flow_key} no mxmn for bars_range => {key} !?"
|
f"{flow_key} no mxmn for bars_range => {key} !?"
|
||||||
)
|
)
|
||||||
res = 0, 0
|
res = 0, 0
|
||||||
|
|
||||||
|
profiler(f'yrange mxmn: {key} -> {res}')
|
||||||
return res
|
return res
|
||||||
|
|
Loading…
Reference in New Issue