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

Polish

parent 59785ff2
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,8 @@ SHPC_anti and SHPC_cyclo. The mat files are assumed to be in v7.3
(HDF5) format and will be converted to v6 format before being read in
Python. The data in each input file is the set of detected
instantaneous eddies at a given date. The second, optional argument,
is the final date processed.
is the final date processed. The script inst_eddies.m must be in the
current directory at run-time.
"""
......@@ -226,4 +227,4 @@ for factory in factories:
else:
f.write("anticyclones\n")
for k, v in factory["writers"].items(): v.close()
for key, v in factory["writers"].items(): v.close()
......@@ -27,7 +27,7 @@ def date_eddy_to_node(d, eddy_index, e_overestim, d_init):
identification in graph.
"""
return (d- d_init) * e_overestim + eddy_index
return (d - d_init) * e_overestim + eddy_index
def read_eddy_graph(edgelist, shpc_dir = None):
if os.access(edgelist, os.R_OK):
......
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