Add commented prints for debugging

mxmn_from_m4
Tyler Goodlet 2022-06-27 18:22:51 -04:00
parent c620517543
commit 49c720af3c
1 changed files with 4 additions and 4 deletions

View File

@ -418,12 +418,10 @@ class Flow(msgspec.Struct): # , frozen=True):
mxmn = None mxmn = None
elif self.yrange: elif self.yrange:
# print(f'{self.name} using yrange: {self.yrange}')
mxmn = self.yrange mxmn = self.yrange
# print(f'{self.name} M4 maxmin: {mxmn}')
else: else:
print(f'{self.name} MANUAL MAXMIN')
# return 0, 0
if self.is_ohlc: if self.is_ohlc:
ylow = np.min(slice_view['low']) ylow = np.min(slice_view['low'])
yhigh = np.max(slice_view['high']) yhigh = np.max(slice_view['high'])
@ -434,6 +432,7 @@ class Flow(msgspec.Struct): # , frozen=True):
yhigh = np.max(view) yhigh = np.max(view)
mxmn = ylow, yhigh mxmn = ylow, yhigh
# print(f'{self.name} MANUAL maxmin: {mxmin}')
if mxmn is not None: if mxmn is not None:
# cache new mxmn result # cache new mxmn result
@ -668,7 +667,7 @@ class Flow(msgspec.Struct): # , frozen=True):
**rkwargs, **rkwargs,
) )
if showing_src_data: if showing_src_data:
print(f"{self.name} SHOWING SOURCE") # print(f"{self.name} SHOWING SOURCE")
# reset yrange to be computed from source data # reset yrange to be computed from source data
self.yrange = None self.yrange = None
@ -1075,6 +1074,7 @@ class Renderer(msgspec.Struct):
# xy-path data transform: convert source data to a format # xy-path data transform: convert source data to a format
# able to be passed to a `QPainterPath` rendering routine. # able to be passed to a `QPainterPath` rendering routine.
if not len(hist): if not len(hist):
# XXX: this might be why the profiler only has exits?
return return
x_out, y_out, connect = self.format_xy( x_out, y_out, connect = self.format_xy(