File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 17
17
https://ddd.uab.cat/pub/pubmat/02141493v43n1/02141493v43n1p27.pdf
18
18
19
19
Remark: Some overflow runtime warnings are suppressed. This is because of the
20
- way the iterateion loop is implemented, using numpy's efficient computations.
20
+ way the iteration loop is implemented, using numpy's efficient computations.
21
21
Overflows and infinites are replaced after each step by a large number.
22
22
"""
23
23
@@ -122,8 +122,12 @@ def show_results(
122
122
pyplot .show ()
123
123
124
124
125
- def ignore_overflow_warnings ():
126
- # Fine grained filtering will make sure that we know what we are doing
125
+ def ignore_overflow_warnings () -> None :
126
+ """
127
+ Ignore some overflow and invalid value warnings.
128
+
129
+ >>> ignore_overflow_warnings()
130
+ """
127
131
warnings .filterwarnings (
128
132
"ignore" , category = RuntimeWarning , message = "overflow encountered in multiply"
129
133
)
You can’t perform that action at this time.
0 commit comments