Skip to content

Commit

Permalink
Happy mypy.
Browse files Browse the repository at this point in the history
  • Loading branch information
evetion committed May 6, 2024
1 parent 17d8adf commit d1d38e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coupling/delwaq/gen_delwaq.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
delwaq_dir = Path(__file__).parent
repo_dir = delwaq_dir.parents[1]

env = Environment(loader=FileSystemLoader(delwaq_dir / "template"))
env = Environment(autoescape=True, loader=FileSystemLoader(delwaq_dir / "template"))

fillvolume = 1.0

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 @@ -204,7 +204,7 @@ def _apply_crs_function(self, function_name: str, crs: str) -> None:

def node_table(self) -> NodeTable:
"""Compute the full NodeTable from all node types."""
df_chunks = [node.node.df.set_crs(self.crs) for node in self._nodes()] # type: ignore
df_chunks = [node.node.df.set_crs(self.crs) for node in self._nodes()]
df = pd.concat(df_chunks, ignore_index=True)
node_table = NodeTable(df=df)
node_table.sort()
Expand Down

0 comments on commit d1d38e7

Please sign in to comment.