Skip to content
Snippets Groups Projects
Commit 5c36085c authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Changed directory name for clarity

parent c0c56e37
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment