Skip to content

Commit

Permalink
fix: prediction directory creation; discrepancy between CI and local?
Browse files Browse the repository at this point in the history
  • Loading branch information
melisande-c committed Nov 27, 2024
1 parent 4fe951d commit 8b2443f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/careamics/careamist.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,9 +852,9 @@ def predict_to_disk(
# create directory structure and write path
if not source_path.is_file():
file_write_dir = write_dir / file_path.parent.relative_to(source_path)
file_write_dir.mkdir(parents=True, exist_ok=True)
else:
file_write_dir = write_dir
file_write_dir.mkdir(parents=True, exist_ok=True)
write_path = (file_write_dir / file_path.name).with_suffix(write_extension)

# write data
Expand Down

0 comments on commit 8b2443f

Please sign in to comment.