add colorbar to hlut tool, add pause_events() context manager#550
Closed
kushalkolar wants to merge 3 commits intomainfrom
Closed
add colorbar to hlut tool, add pause_events() context manager#550kushalkolar wants to merge 3 commits intomainfrom
pause_events() context manager#550kushalkolar wants to merge 3 commits intomainfrom
Conversation
Member
Author
|
I realized there's a better way to manage temporary event blocking, added a context manager that takes @clewis7 you will like this :D , simple example: a = np.random.rand(10, 10)
ig = fpl.ImageGraphic(a)
with fpl.pause_events(ig):
print("enter context manager")
print(ig.block_events)
print("doing some stuff that can cause infinite recursion")
print(ig.block_events)
print("done doing stuff")
print(ig.block_events)results in: enter context manager
True
doing some stuff that can cause infinite recursion
True
done doing stuff
False |
kushalkolar
commented
Jul 10, 2024
pause_events() context manager
clewis7
reviewed
Jul 12, 2024
clewis7
reviewed
Jul 12, 2024
Member
Author
|
closing because I merged this into axes #551 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
adds a dynamic colobar to the HistogramLUT tool
cbar-2024-07-10_03.00.57.mp4
@clewis7 this will modify the test screenshot, but I will do that after getting your thoughts on this 😄