Skip to content

Commit 19b2b4f

Browse files
committed
minor fix
1 parent 0f32a11 commit 19b2b4f

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

examples/06_grid_manipulation/pet_lavd.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
Method are described here:
99
1010
- Abernathey, Ryan, and George Haller. "Transport by Lagrangian Vortices in the Eastern Pacific",
11-
Journal of Physical Oceanography 48, 3 (2018): 667-685, accessed Feb 16, 2021,
12-
https://doi.org/10.1175/JPO-D-17-0102.1
11+
Journal of Physical Oceanography 48, 3 (2018): 667-685, accessed Feb 16, 2021,
12+
https://doi.org/10.1175/JPO-D-17-0102.1
1313
- `Transport by Coherent Lagrangian Vortices`_,
14-
R. Abernathey, Sinha A., Tarshish N., Liu T., Zhang C., Haller G., 2019,
15-
Talk a t the Sources and Sinks of Ocean Mesoscale Eddy Energy CLIVAR Workshop
14+
R. Abernathey, Sinha A., Tarshish N., Liu T., Zhang C., Haller G., 2019,
15+
Talk a t the Sources and Sinks of Ocean Mesoscale Eddy Energy CLIVAR Workshop
1616
1717
.. _Transport by Coherent Lagrangian Vortices:
1818
https://usclivar.org/sites/default/files/meetings/2019/presentations/Aberernathey_CLIVAR.pdf

examples/16_network/pet_replay_segmentation.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111
from datetime import datetime, timedelta
1212

1313
import numpy as np
14-
from matplotlib import colors
1514
from matplotlib import pyplot as plt
1615
from matplotlib.animation import FuncAnimation
1716
from matplotlib.ticker import FuncFormatter
1817

1918
import py_eddy_tracker.gui
20-
from py_eddy_tracker.appli.gui import Anim
2119
from py_eddy_tracker.data import get_path
2220
from py_eddy_tracker.observations.network import NetworkObservations
2321
from py_eddy_tracker.observations.tracking import TrackEddiesObservations
@@ -34,7 +32,7 @@ def save(self, *args, **kwargs):
3432
if args[0].endswith("gif"):
3533
# In this case gif is use to create thumbnail which are not use but consume same time than video
3634
# So we create an empty file, to save time
37-
with open(args[0], "w") as h:
35+
with open(args[0], "w") as _:
3836
pass
3937
return
4038
return super().save(*args, **kwargs)

examples/16_network/pet_segmentation_anim.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,4 @@ def update(i_frame):
8585
mappable_tracks = ax.scatter(
8686
e.lon, e.lat, c=TRACKS[0], cmap=cmap, vmin=0, vmax=vmax, s=20
8787
)
88-
ani = VideoAnimation(
89-
fig, update, frames=range(1, len(TRACKS), 4), interval=125, blit=True
90-
)
88+
ani = VideoAnimation(fig, update, frames=range(1, len(TRACKS), 4), interval=125)

0 commit comments

Comments
 (0)