Skip to content

Commit d859992

Browse files
committed
fix(one-to-many routing): in the case of routing networks with one or more divergences (reaches routing to more than one reach), the downstream connections were still being cast to ints, and therefore weren't identified as being within the stream network (of string line-ids). Remove type-casting here as it should be done in other contexts when the data are read in.
1 parent dba34a6 commit d859992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sfrmaker/routing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def make_graph(fromcomids, tocomids, one_to_many=True):
180180
if scalar_tocomids:
181181
tocomid_sets = [{v} for v in tocomids]
182182
else:
183-
tocomid_sets = [set(a.astype('int64').tolist()) for a in map(np.array, tocomids)]
183+
tocomid_sets = [set(a) for a in tocomids]
184184
tuples = zip(fromcomids, tocomid_sets)
185185
graph = defaultdict(set)
186186
for fromcomid, tocomid in tuples:

0 commit comments

Comments
 (0)