Skip to content

Commit 1377462

Browse files
committed
Fix dir for saving in tests
1 parent ca57aa6 commit 1377462

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

napari_cellseg3d/code_models/worker_inference.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ def save_image(
436436
+ f"_{time}"
437437
+ filetype
438438
)
439+
if not Path(self.config.results_path).exists():
440+
Path(self.config.results_path).mkdir(parents=True, exist_ok=True)
439441
try:
440442
imwrite(file_path, image)
441443
except ValueError as e:

0 commit comments

Comments
 (0)