Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

clewis7
Copy link
Member

@clewis7 clewis7 commented May 25, 2023

No description provided.

@kushalkolar
Copy link
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
@@ -254,6 +259,9 @@ def cleanup_array_slice(key: np.ndarray, upper_bound) -> np.ndarray:
if key.dtype == bool:
key = np.nonzero(key)[0]

if key.size < 1:
Copy link
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
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
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

@@ -11,6 +11,9 @@


class LinearBoundsFeature(GraphicFeature):
feature_events = (
"data",
Copy link
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
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