Skip to content

Commit

Permalink
use warnings package instead of numpy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yiitozer committed Aug 31, 2023
1 parent 93f3260 commit 3c60f91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libpcp/complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

import os
import warnings
import numpy as np
from matplotlib import pyplot as plt
from matplotlib.colors import LinearSegmentedColormap
Expand Down Expand Up @@ -243,7 +244,7 @@ def exercise_mandelbrot_fancy(show_result=True, save_file=False):
thresh = 1000
mandel_iter = np.zeros((M, N))

np.warnings.filterwarnings('ignore')
warnings.filterwarnings('ignore')
Z = np.zeros((M, N))
for k in range(iter_max):
Z = Z * Z + C
Expand Down

0 comments on commit 3c60f91

Please sign in to comment.