File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,9 @@ class clear_and_catch_warnings(warnings.catch_warnings):
83
83
returned by the context manager. Otherwise None is returned by the
84
84
context manager. The objects appended to the list are arguments whose
85
85
attributes mirror the arguments to ``showwarning()``.
86
+
87
+ NOTE: nibabel difference from numpy: default is True
88
+
86
89
modules : sequence, optional
87
90
Sequence of modules for which to reset warnings registry on entry and
88
91
restore on exit
@@ -96,7 +99,7 @@ class clear_and_catch_warnings(warnings.catch_warnings):
96
99
"""
97
100
class_modules = ()
98
101
99
- def __init__ (self , record = False , modules = ()):
102
+ def __init__ (self , record = True , modules = ()):
100
103
self .modules = set (modules ).union (self .class_modules )
101
104
self ._warnreg_copies = {}
102
105
super (clear_and_catch_warnings , self ).__init__ (record = record )
You can’t perform that action at this time.
0 commit comments