From b35655feec772a678151a5cf0d3f6d2a3ed71578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Tue, 16 Apr 2024 10:24:59 +0200 Subject: [PATCH] fix: cast string to paths when adding a new path to the manager (close #6) --- CHANGELOG | 2 ++ chipstream/manager.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 29998bd..991f78a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +0.2.1 + - fix: cast string to paths when adding a new path to the manager (#6) 0.2.0 - feat: allow to specify an output directory in the GUI (#3) - feat: allow to select the pixel size in the GUI (#4) diff --git a/chipstream/manager.py b/chipstream/manager.py index f5968e9..e63c614 100644 --- a/chipstream/manager.py +++ b/chipstream/manager.py @@ -47,7 +47,7 @@ def current_index(self): def add_path(self, path): if not self.is_busy(): # Only append paths if we are currently not busy - self._path_in_list.append([path, "created"]) + self._path_in_list.append([pathlib.Path(path), "created"]) def clear(self): """Clear all data"""