Skip to content
Snippets Groups Projects
Commit 1c476578 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Move window before the keyword-only arguments

Move argument window before the keyword-only arguments. Preparing for
using the function in an animation.
parent 3488565a
No related branches found
No related tags found
No related merge requests found
......@@ -28,9 +28,9 @@ import cartopy.crs as ccrs
from os import path
from cartopy.mpl import geoaxes
def snapshot(k, shp_tr_dir, *, dashed = False, light = False,
def snapshot(k, shp_tr_dir, window = None, *, dashed = False, light = False,
new_figure = False, src_crs = ccrs.PlateCarree(),
projection = ccrs.PlateCarree(), window = None):
projection = ccrs.PlateCarree()):
"""Plots extrema, outermost contours and max-speed contours.
shp_tr_dir: containing the three shapefiles.
......@@ -227,8 +227,8 @@ if __name__ == "__main__":
marker = "+", color = "gray", linestyle = "None")
if args.window is None: plot_grid_bb(args.shp_tr_dir, ax)
snapshot(args.k, args.shp_tr_dir, dashed = args.dashed,
light = args.light, window = args.window)
snapshot(args.k, args.shp_tr_dir, args.window, dashed = args.dashed,
light = args.light)
if args.velocity:
with netCDF4.Dataset("uv.nc") as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment