Skip to content

Commit

Permalink
Try to address the futurewarning
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Sep 24, 2024
1 parent 990f528 commit e6fcaf3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/ribasim/ribasim/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@ def _apply_crs_function(self, function_name: str, crs: str) -> None:

def node_table(self) -> NodeTable:
"""Compute the full sorted NodeTable from all node types."""
df_chunks = [node.node.df for node in self._nodes()]
df_chunks = [
node.node.df
for node in self._nodes()
if node.node.df is not None and not node.node.df.empty
]
df = (
pd.concat(df_chunks)
if df_chunks
Expand Down

0 comments on commit e6fcaf3

Please sign in to comment.