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

Use method `comp_ishape_n`

parent 9c4502fa
No related branches found
No related tags found
No related merge requests found
...@@ -42,11 +42,8 @@ def set_attribute(G, SHPC, orientation): ...@@ -42,11 +42,8 @@ def set_attribute(G, SHPC, orientation):
<= SHPC.get_n_shapes(0, orientation) * SHPC.n_slices / 100 <= SHPC.get_n_shapes(0, orientation) * SHPC.n_slices / 100
): ):
for n in G: for n in G:
date_index, eddy_index = util_eddies.node_to_date_eddy( i_slice, ishape = SHPC.comp_ishape_n(
n, G.graph["e_overestim"] n, G.graph["e_overestim"], orientation
)
i_slice, ishape = SHPC.comp_ishape(
date_index, eddy_index, orientation
) )
reader = SHPC.get_reader(i_slice, orientation, "extremum") reader = SHPC.get_reader(i_slice, orientation, "extremum")
shape_rec = reader.shapeRecord(ishape) shape_rec = reader.shapeRecord(ishape)
......
...@@ -22,10 +22,7 @@ def get_extr_coord(traj, e_overestim, SHPC, orientation): ...@@ -22,10 +22,7 @@ def get_extr_coord(traj, e_overestim, SHPC, orientation):
y = [] y = []
for node in traj: for node in traj:
date_index, eddy_index = util_eddies.node_to_date_eddy( i_slice, ishape = SHPC.comp_ishape_n(node, e_overestim, orientation)
node, e_overestim
)
i_slice, ishape = SHPC.comp_ishape(date_index, eddy_index, orientation)
shape = SHPC.get_reader(i_slice, orientation, layer="extremum").shape( shape = SHPC.get_reader(i_slice, orientation, layer="extremum").shape(
ishape ishape
) )
......
...@@ -76,8 +76,7 @@ def node_to_prop(node_list, e_overestim, SHPC, orientation): ...@@ -76,8 +76,7 @@ def node_to_prop(node_list, e_overestim, SHPC, orientation):
properties = [] properties = []
for n in node_list: for n in node_list:
date_index, eddy_index = util_eddies.node_to_date_eddy(n, e_overestim) i_slice, ishape = SHPC.comp_ishape_n(n, e_overestim, orientation)
i_slice, ishape = SHPC.comp_ishape(date_index, eddy_index, orientation)
shapeRec = SHPC.get_reader( shapeRec = SHPC.get_reader(
i_slice, orientation, "extremum" i_slice, orientation, "extremum"
).shapeRecord(ishape) ).shapeRecord(ishape)
......
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