Skip to content

Commit

Permalink
Merge pull request #511 from kafitzgerald/int
Browse files Browse the repository at this point in the history
change deprecated np.int alias to np.int32
  • Loading branch information
jukent committed May 19, 2023
2 parents 2aa608b + 109d0de commit dea37fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gallery/Contours/NCL_conwomap_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
ax.clabel(cp, inline=True, fontsize=10, colors='black', fmt="%.0f")

# Ignore second half of the graph
y1 = np.full(shape=len(xlist), fill_value=0, dtype=np.int)
y1 = np.full(shape=len(xlist), fill_value=0, dtype=np.int32)
y2 = x
ax.fill_between(x,
y1,
Expand Down
2 changes: 1 addition & 1 deletion Gallery/Meteograms/NCL_meteo_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
]

# Determine the labels for each tick on the x and y axes
yticklabels = np.array(levels, dtype=np.int)
yticklabels = np.array(levels, dtype=np.int32)
xticklabels = [
'12z', '15z', '18z', '21z', 'Apr29', '03z', '06z', '09z', '12z', '15z',
'18z', '21z', 'Apr30', '03z', '06z', '09z', '12z', '15z', '18z', '21z',
Expand Down
2 changes: 1 addition & 1 deletion GeoCAT-comp-examples/comp_only/moc_globe_atl_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

# Read important parameters from input data
nyaux = lat_aux_grid.shape[0] # 395
km = np.max(kmt.values).astype(np.int)
km = np.max(kmt.values).astype(np.int32)
ny = tarea.shape[0]
nx = tarea.shape[1]

Expand Down

0 comments on commit dea37fb

Please sign in to comment.