Drop passing `render_data` to `Curve.draw_last_datum()`

multichartz_backup
Tyler Goodlet 2022-12-08 11:00:06 -05:00
parent 0516e7d6f2
commit 8a295eba51
3 changed files with 2 additions and 9 deletions

View File

@ -360,7 +360,6 @@ class Curve(pg.GraphicsObject):
self, self,
path: QPainterPath, path: QPainterPath,
src_data: np.ndarray, src_data: np.ndarray,
render_data: np.ndarray,
reset: bool, reset: bool,
array_key: str, array_key: str,
index_field: str, index_field: str,
@ -368,8 +367,8 @@ class Curve(pg.GraphicsObject):
) -> None: ) -> None:
# default line draw last call # default line draw last call
# with self.reset_cache(): # with self.reset_cache():
x = render_data[index_field] x = src_data[index_field]
y = render_data[array_key] y = src_data[array_key]
# draw the "current" step graphic segment so it # draw the "current" step graphic segment so it
# lines up with the "middle" of the current # lines up with the "middle" of the current
@ -392,7 +391,6 @@ class FlattenedOHLC(Curve):
self, self,
path: QPainterPath, path: QPainterPath,
src_data: np.ndarray, src_data: np.ndarray,
render_data: np.ndarray,
reset: bool, reset: bool,
array_key: str, array_key: str,
index_field: str, index_field: str,
@ -423,7 +421,6 @@ class StepCurve(Curve):
self, self,
path: QPainterPath, path: QPainterPath,
src_data: np.ndarray, src_data: np.ndarray,
render_data: np.ndarray,
reset: bool, reset: bool,
array_key: str, array_key: str,
index_field: str, index_field: str,

View File

@ -221,7 +221,6 @@ class BarItems(pg.GraphicsObject):
self, self,
path: QPainterPath, path: QPainterPath,
src_data: np.ndarray, src_data: np.ndarray,
render_data: np.ndarray,
reset: bool, reset: bool,
array_key: str, array_key: str,
index_field: str, index_field: str,

View File

@ -733,7 +733,6 @@ class Viz(msgspec.Struct): # , frozen=True):
# # graphics.draw_last_datum( # # graphics.draw_last_datum(
# # path, # # path,
# # src_array, # # src_array,
# # data,
# # reset, # # reset,
# # array_key, # # array_key,
# # ) # # )
@ -747,7 +746,6 @@ class Viz(msgspec.Struct): # , frozen=True):
graphics.draw_last_datum( graphics.draw_last_datum(
path, path,
src_array, src_array,
data,
reset, reset,
array_key, array_key,
index_field=self.index_field, index_field=self.index_field,
@ -785,7 +783,6 @@ class Viz(msgspec.Struct): # , frozen=True):
x, y = g.draw_last_datum( x, y = g.draw_last_datum(
g.path, g.path,
src_array, src_array,
src_array,
False, # never reset path False, # never reset path
array_key, array_key,
self.index_field, self.index_field,