Skip to content

Commit

Permalink
fix: write correct branchorder to net file (#335)
Browse files Browse the repository at this point in the history
* #334 fix branchorder writing to net file

* autoformat: isort & black

Co-authored-by: xldeltares <xldeltares@users.noreply.github.com>
  • Loading branch information
xldeltares and xldeltares committed Sep 2, 2022
1 parent eafd02b commit 40d7df2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hydrolib/core/io/net/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,9 @@ def _add_branch(
self.branches[name] = branch

# Add branch administration
self.network1d_branch_order = np.append(self.network1d_branch_order, -1)
self.network1d_branch_order = np.append(
self.network1d_branch_order, branch_order
)
self.network1d_branch_length = np.append(
self.network1d_branch_length, branch.length
)
Expand Down

0 comments on commit 40d7df2

Please sign in to comment.