Skip to content

selector garbage collection, use selection feature name, cleanup event handlers#209

Closed
clewis7 wants to merge 1 commit intomasterfrom
event-changes
Closed

selector garbage collection, use selection feature name, cleanup event handlers#209
clewis7 wants to merge 1 commit intomasterfrom
event-changes

Conversation

@clewis7
Copy link
Copy Markdown
Member

@clewis7 clewis7 commented May 25, 2023

No description provided.

@kushalkolar
Copy link
Copy Markdown
Member

let's also throw in #211

@kushalkolar kushalkolar changed the title changes to event handler deletion selector garbage collection, use selection feature name, cleanup event handlers May 26, 2023
if key.dtype == bool:
key = np.nonzero(key)[0]

if key.size < 1:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot what this fixed 😄

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@clewis7 can you jog my memory? Is this when you do something like line_graphic.colors[xs > 0] = "w", but xs > 0 is an empty array?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, bc we kept getting an error when trying to set the colors and a behavior had not a occurred so the array was all zeroes, would never give True


class LinearBoundsFeature(GraphicFeature):
feature_events = (
"data",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is supposed to be bounds, but as for #211 let's rename it to selection

@kushalkolar kushalkolar closed this Jun 2, 2023
@kushalkolar
Copy link
Copy Markdown
Member

this got included in #207

@kushalkolar kushalkolar deleted the event-changes branch June 12, 2023 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants