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

Colortables: Provide unique copies of constants #309

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

btbest
Copy link
Contributor

@btbest btbest commented Jan 5, 2024

When the constants are imported, any modifications to them persist until Python is restarted. Consumers currently have to make their own copy of the constant, which they shouldn't have to.

See ilastik/ilastik#2786

@btbest btbest force-pushed the provide-copies-of-colortable-constants branch from 00102cb to 431669a Compare January 5, 2024 10:47
When the constants are imported, any modifications to them persist until Python is restarted. Consumers currently have to make their own copy of the constant, which they shouldn't have to.
@btbest btbest force-pushed the provide-copies-of-colortable-constants branch from 431669a to 0241d60 Compare January 5, 2024 10:49
@k-dominik
Copy link
Contributor

lgtm, I hope the test failures observed with the ilastik env where just flaky, let's see.

@btbest btbest merged commit 98d4b4b into ilastik:main Jan 12, 2024
9 of 11 checks passed
@btbest btbest deleted the provide-copies-of-colortable-constants branch January 12, 2024 13:06
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