Skip to content

Commit ff30b39

Browse files
committed
Active network documentation
1 parent 2024cdb commit ff30b39

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

examples/16_network/README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Network
2+
=======
3+
4+
.. warning::
5+
6+
Network is under development, API could move quickly!

src/py_eddy_tracker/appli/gui.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def anim():
282282
parser.add_argument(
283283
"--first_centered",
284284
action="store_true",
285-
help="Longitude will be centered on first obs, if there are only one group.",
285+
help="Longitude will be centered on first obs.",
286286
)
287287
parser.add_argument(
288288
"--field", default="time", help="Field use to color contour instead of time"
@@ -310,13 +310,13 @@ def anim():
310310
"You need to specify id to display or ask explicity all with --all option"
311311
)
312312
eddies = eddies.extract_ids(args.id)
313-
if args.first_centered:
314-
# TODO: include observatin class
315-
x0 = eddies.lon[0]
316-
eddies.lon[:] = (eddies.lon - x0 + 180) % 360 + x0 - 180
317-
eddies.contour_lon_e[:] = (
318-
(eddies.contour_lon_e.T - eddies.lon + 180) % 360 + eddies.lon - 180
319-
).T
313+
if args.first_centered:
314+
# TODO: include to observation class
315+
x0 = eddies.lon[0]
316+
eddies.lon[:] = (eddies.lon - x0 + 180) % 360 + x0 - 180
317+
eddies.contour_lon_e[:] = (
318+
(eddies.contour_lon_e.T - eddies.lon + 180) % 360 + eddies.lon - 180
319+
).T
320320

321321
kw = dict()
322322
if args.mp4:

0 commit comments

Comments
 (0)