Skip to content

Commit 1d4b725

Browse files
FBumannclaude
andcommitted
fix: log warning with traceback when Polars streaming fallback triggers
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 86232e8 commit 1d4b725

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

linopy/io.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ def _format_and_write(
7373
.collect(engine="streaming")
7474
)
7575
except Exception:
76+
logger.warning(
77+
"Polars streaming engine failed, falling back to eager evaluation. "
78+
"Please report this at https://github.com/PyPSA/linopy/issues",
79+
exc_info=True,
80+
)
7681
formatted = df.select(pl.concat_str(columns, ignore_nulls=True))
7782
formatted.write_csv(f, **kwargs)
7883

0 commit comments

Comments
 (0)