Skip to content

Commit d6f4662

Browse files
committed
update to use np.nan (all lowercase)
1 parent 2bdcca4 commit d6f4662

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pecos/graphics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def plot_doy_heatmap(data, cmap='nipy_spectral', vmin=None, vmax=None,
399399
data.index.minute + \
400400
data.index.second/60 + \
401401
data.index.microsecond/(60*1000000.0)
402-
piv = pd.pivot_table(data,values=col_name,index=['Y'],columns=['X'],fill_value=np.NaN)
402+
piv = pd.pivot_table(data,values=col_name,index=['Y'],columns=['X'],fill_value=np.nan)
403403

404404
# Create the heatmap
405405
plt.figure(figsize = figsize)

pecos/monitoring.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ def check_custom_streaming(self, quality_control_func, window, key=None,
876876
assert isinstance(metadata[t_timestamp], pd.Series), 'metadata returned by quality_control_func must be of type pd.Series'
877877

878878
np_mask[t] = mask_t.values
879-
np_data[~np_mask] = np.NAN
879+
np_data[~np_mask] = np.nan
880880

881881
# rebase
882882
if rebase is not None:

0 commit comments

Comments
 (0)