Skip to content

Commit

Permalink
fix np.warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzhuzhang committed Jul 26, 2023
1 parent 128e1ff commit ff79c2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e3sm_diags/plot/cartopy/arm_diags_plot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import math
import os
import warnings

import matplotlib
import numpy as np
Expand Down Expand Up @@ -189,7 +190,7 @@ def plot_convection_onset_statistics(
precip_binned = np.empty([number_of_bins, cwv.size]) * np.nan
precip_counts = np.zeros([number_of_bins, cwv.size])

np.warnings.filterwarnings("ignore")
warnings.filterwarnings("ignore")
# Bin the data by CWV value as specified above
for i in range(0, number_of_bins):
tmp1 = np.where(cwv > cwv_min + (i * bin_width))
Expand Down

0 comments on commit ff79c2f

Please sign in to comment.