Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayThorve committed Feb 9, 2024
1 parent 7b5b5c0 commit 4fd9ea6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/cuxfilter/charts/core/aggregate/core_aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ def reset_callback(resetting):
def get_box_select_callback(self, dashboard_cls):
def cb(bounds, x_selection, y_selection):
self.box_selected_range, self.selected_indices = None, None
if type(x_selection) == tuple:
if isinstance(x_selection, tuple):
self.box_selected_range = {
self.x + "_min": x_selection[0],
self.x + "_max": x_selection[1],
}
elif type(x_selection) == list:
elif isinstance(x_selection, list):
self.selected_indices = (
dashboard_cls._cuxfilter_df.data[self.x]
.isin(x_selection)
Expand Down
2 changes: 2 additions & 0 deletions python/cuxfilter/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def queried_indices(self):
for (key, value) in self._query_str_dict.items()
if type(value)
in [
cudf.DataFrame,
dask_cudf.DataFrame,
cudf.Series,
dask_cudf.Series,
]
Expand Down

0 comments on commit 4fd9ea6

Please sign in to comment.