From a40cab443a3fc6158e023b5aea4208f0edf199eb Mon Sep 17 00:00:00 2001 From: "glegoc@NeuroPSI" Date: Thu, 9 Jan 2025 16:01:41 +0100 Subject: [PATCH] Update io.py and pyproject.toml - replace output h5 file instead of appending --- cuisto/io.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cuisto/io.py b/cuisto/io.py index 6045f81..031737d 100644 --- a/cuisto/io.py +++ b/cuisto/io.py @@ -238,7 +238,7 @@ def save_dfs(out_dir: str, filename, dfs: dict): if ext in [".h5", ".hdf", ".hdf5"]: path = os.path.join(out_dir, filename) for identifier, df in dfs.items(): - df.to_hdf(path, key=identifier) + df.to_hdf(path, key=identifier, mode="w") elif ext == ".xlsx": for identifier, df in dfs.items(): df.to_excel(path, sheet_name=identifier) diff --git a/pyproject.toml b/pyproject.toml index c4c1ea9..9f02dbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "cuisto" -version = "2025.01.9" +version = "2025.01.10" authors = [{ name = "Guillaume Le Goc", email = "g.legoc@posteo.org" }] description = "Quantification of objects in histological slices" readme = "README.md"