Skip to content
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

Use ChangeTrackingDict #68

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Use ChangeTrackingDict #68

merged 1 commit into from
Oct 17, 2024

Conversation

superstar54
Copy link
Owner

@superstar54 superstar54 commented Oct 17, 2024

This PR introduces a ChangeTrackingDict, which detects the change of the dict, and automatically run (deepcopy - edit - assign back) for a traitlet.

This make the following codes possible:

viewer.avr.species.settings['C']["color"]="blue"
viewer.avr.species.settings['C']["radius"]=0.6

@superstar54 superstar54 force-pushed the feature/change_tracking branch 2 times, most recently from 51ef5c3 to d7100e9 Compare October 17, 2024 11:17
@superstar54 superstar54 merged commit 6aaf9cf into main Oct 17, 2024
13 checks passed
@superstar54 superstar54 deleted the feature/change_tracking branch October 17, 2024 11:24
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.

1 participant