From 5c36085c2a7bbe0bfaccf83a67c333f20c4a0d72 Mon Sep 17 00:00:00 2001
From: Christopher Rhodes <christopher.rhodes@embl.de>
Date: Mon, 30 Oct 2023 10:27:42 +0100
Subject: [PATCH] Changed directory name for clarity

---
 extensions/chaeo/examples/test_modify_object_classifier.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/extensions/chaeo/examples/test_modify_object_classifier.py b/extensions/chaeo/examples/test_modify_object_classifier.py
index a8157790..11ac90e7 100644
--- a/extensions/chaeo/examples/test_modify_object_classifier.py
+++ b/extensions/chaeo/examples/test_modify_object_classifier.py
@@ -13,7 +13,7 @@ def modify_ilastik_object_classifier(template_ilp: Path, lane: int = 0):
     proj_name = template_ilp.stem
     proj_new_ilp = shutil.copy(template_ilp, proj_dir / ('mod_' + proj_name + '.ilp'))
 
-    with h5py.File(where / proj_new_ilp, 'r+') as h5:
+    with h5py.File(proj_dir / proj_new_ilp, 'r+') as h5:
 
         # delete ObjectExtraction / RegionFeatures / 0000
         # delete ObjectClassification/ClassifierForests
@@ -33,7 +33,7 @@ def modify_ilastik_object_classifier(template_ilp: Path, lane: int = 0):
             pa = Path(h5[f'{key}/filePath'][()].decode())
             assert pa.is_absolute()
             rel_pa = pa.name
-            assert (where / rel_pa).exists()
+            assert (proj_dir / rel_pa).exists()
             del h5[f'{key}/filePath']
             h5[f'{key}/filePath'] = rel_pa
             assert h5[f'{key}/filePath'][()] == rel_pa.encode()
-- 
GitLab