Skip to content

Commit

Permalink
Merge pull request #52 from SWxTREC/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
greglucas authored Jul 2, 2024
2 parents 94a6085 + 5e79dd8 commit 910a1d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ci:
autoupdate_schedule: 'quarterly'
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.3.3'
rev: 'v0.5.0'
hooks:
- id: ruff
args: [--fix]
Expand Down
4 changes: 2 additions & 2 deletions examples/plot_surface_animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@
def update_surface(t):
date_string = dates[t].astype("O").strftime("%H:%M")
title.set_text(f"{date_string}")
time_line.set_xdata(dates[t])
time_line.set_xdata([dates[t]])
mesh.set_array(output[t, :, :, i].T)
sun.set_data(sun_loc[t], 0)
sun.set_data([sun_loc[t]], [0])


ani = FuncAnimation(fig, update_surface, frames=range(ndates), interval=25)
Expand Down
2 changes: 1 addition & 1 deletion examples/plot_version_diff_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
fig, axarr = plt.subplots(nrows=3, ncols=3, constrained_layout=True, figsize=(8, 6))
xx, yy = np.meshgrid(lons, lats)
norm = mpl.colors.Normalize(-50, 50)
cmap = mpl.cm.get_cmap("RdBu_r")
cmap = mpl.colormaps["RdBu_r"]
for i, ax in enumerate(axarr.flatten()):
mesh = ax.pcolormesh(xx, yy, diff[:, :, i].T, shading="auto", norm=norm, cmap=cmap)
ax.set_title(f"{variables[i]}")
Expand Down

0 comments on commit 910a1d9

Please sign in to comment.