ENH: Feature to disable automatic updates.#712
Merged
prabhuramachandran merged 1 commit intoSep 8, 2018
Conversation
This can be very handy at times when the automatic updates can trigger several changes that are not desirable. For example on certain VTK calls, internal ModifiedEvents may be fired which will automatically call the update_traits method which can be wired to other events triggering problems. In these cases one can use the `global_disable_update` function to temporarily disable updates. Also fix some PEP8 errors and a few places where the state of the object could be incorrectly set due to exceptions beinf raised.
Codecov Report
@@ Coverage Diff @@
## master #712 +/- ##
==========================================
+ Coverage 51.33% 51.34% +0.01%
==========================================
Files 259 259
Lines 23648 23657 +9
Branches 3226 3227 +1
==========================================
+ Hits 12139 12147 +8
+ Misses 10722 10721 -1
- Partials 787 789 +2
Continue to review full report at Codecov.
|
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.
This can be very handy at times when the automatic updates can trigger
several changes that are not desirable. For example on certain VTK
calls, internal ModifiedEvents may be fired which will automatically
call the update_traits method which can be wired to other events
triggering problems. In these cases one can use the
global_disable_updatefunction to temporarily disable updates.Also fix some PEP8 errors and a few places where the state of the object
could be incorrectly set due to exceptions being raised.