Put mxmn profile mapping at end of method

incremental_update_paths
Tyler Goodlet 2022-04-22 19:01:37 -04:00
parent af6aad4e9c
commit 64206543cd
1 changed files with 2 additions and 2 deletions

View File

@ -1283,7 +1283,7 @@ class ChartPlotWidget(pg.PlotWidget):
flow is None
):
log.error(f"flow {flow_key} doesn't exist in chart {self.name} !?")
res = 0, 0
key = res = 0, 0
else:
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)
res = flow.maxmin(*key)
profiler(f'yrange mxmn: {key} -> {res}')
if res == (None, None):
log.error(
f"{flow_key} no mxmn for bars_range => {key} !?"
)
res = 0, 0
profiler(f'yrange mxmn: {key} -> {res}')
return res