Skip to content

Commit 0f32a11

Browse files
committed
replace list by set for connexions information
1 parent b075e2b commit 0f32a11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/py_eddy_tracker/observations/network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ def connexions(self, multi_network=False):
173173

174174
def add_seg(father, child):
175175
if father not in segments_connexion:
176-
segments_connexion[father] = list()
177-
segments_connexion[father].append(child)
176+
segments_connexion[father] = set()
177+
segments_connexion[father].add(child)
178178

179179
previous_obs, next_obs = self.previous_obs, self.next_obs
180180
for i, seg, _ in self.iter_on(segment):

0 commit comments

Comments
 (0)