Skip to content

Commit

Permalink
Give in full file path for polars write_parquet
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj authored and yngve-sk committed Oct 14, 2024
1 parent 031e586 commit 12d2b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ert/storage/local_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def _to_parquet_transaction(
"""
self._swap_path.mkdir(parents=True, exist_ok=True)
with NamedTemporaryFile(dir=self._swap_path, delete=False) as f:
dataframe.write_parquet(f)
dataframe.write_parquet(f.name)
os.rename(f.name, filename)


Expand Down

0 comments on commit 12d2b53

Please sign in to comment.