Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Hofer-Julian <[email protected]>
  • Loading branch information
visr and Hofer-Julian authored Feb 12, 2024
1 parent 5996c12 commit b8c3bc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ function get_level(
storage::Union{AbstractArray, Number} = 0,
)::Union{Real, Nothing}
(; basin, level_boundary) = p
return if node_id.type == NodeType.Basin
if node_id.type == NodeType.Basin
_, i = id_index(basin.node_id, node_id)
current_level = get_tmp(basin.current_level, storage)
current_level[i]
Expand Down
2 changes: 1 addition & 1 deletion python/ribasim/ribasim/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def _add_node_types(self):
)

@classmethod
def read(cls, filepath: FilePath) -> "Model":
def read(cls, filepath: FilePath) -> Self:
"""Read model from TOML file."""
return cls(filepath=filepath) # type: ignore

Expand Down

0 comments on commit b8c3bc1

Please sign in to comment.