Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes
  • Loading branch information
kushalkolar committed May 11, 2026
commit ebc500f30d36947b891a2569ed8ff82ca5731eb8
8 changes: 4 additions & 4 deletions fastplotlib/widgets/nd_widget/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ def slider_dim_transforms(
"""get or set the slider_dim_transforms, see docstring for details"""
self.processor.slider_dim_transforms = maps
# force a render
run_sync(self._set_indices_(self.indices))
run_sync(self._set_indices_())

@property
def window_funcs(
Expand All @@ -736,7 +736,7 @@ def window_funcs(
):
self.processor.window_funcs = window_funcs
# force a render
run_sync(self._set_indices_(self.indices))
run_sync(self._set_indices_())

@property
def window_order(self) -> tuple[str, ...]:
Expand All @@ -747,7 +747,7 @@ def window_order(self) -> tuple[str, ...]:
def window_order(self, order: tuple[str] | None):
self.processor.window_order = order
# force a render
run_sync(self._set_indices_(self.indices))
run_sync(self._set_indices_())

@property
def spatial_func(self) -> Callable[[ArrayProtocol], ArrayProtocol] | None:
Expand All @@ -761,7 +761,7 @@ def spatial_func(
"""get or set the spatial_func, see docstring for details"""
self.processor.spatial_func = func
# force a render
run_sync(self._set_indices_(self.indices))
run_sync(self._set_indices_())

# def _repr_text_(self) -> str:
# return ndg_fmt_text(self)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def spatial_dims(self) -> tuple[str, str, str]:
def spatial_dims(self, dims: tuple[str, str, str]):
self.processor.spatial_dims = dims
# force re-render
run_sync(self._set_indices_(self.indices))
run_sync(self._set_indices_())

@property
def indices(self) -> dict[Hashable, Any]:
Expand Down Expand Up @@ -1019,7 +1019,7 @@ def display_window(self, dw: int | float | None):
self.x_range_mode = None

# force re-render
run_sync(self._set_indices_(self.indices))
run_sync(self._set_indices_())

@property
def datapoints_window_func(self) -> tuple[Callable, str, int | float] | None:
Expand Down
2 changes: 1 addition & 1 deletion fastplotlib/widgets/nd_widget/_nd_positions/_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def tooltip_format(self, n: int, p: int):
p += self._dw_slice.start
return str(self.data[self._tooltip_columns[n]][p])

def get(self, indices: dict[str, Any]) -> dict[str, np.ndarray]:
async def get(self, indices: dict[str, Any]) -> dict[str, np.ndarray]:
# TODO: LOD by using a step size according to max_p
# TODO: Also what to do if display_window is None and data
# hasn't changed when indices keeps getting set, cache?
Expand Down