Skip to content

Commit

Permalink
remove empty project
Browse files Browse the repository at this point in the history
  • Loading branch information
almazgimaev committed Nov 13, 2023
1 parent 39eefca commit 8532fb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def import_dicom_volumes(
nrrd_paths = sly.volume.inspect_nrrd_series(root_dir=project_dir)

if len(series_infos) == 0 and len(nrrd_paths) == 0:
api.project.remove(project.id)
msg = "No DICOM volumes were found. Please, check your input directory."
description = f"Supported formats: {g.ALLOWED_VOLUME_EXTENSIONS} (in archive or directory)."
sly.logger.warn(f"{msg} {description}")
Expand Down

0 comments on commit 8532fb2

Please sign in to comment.