Skip to content

Commit

Permalink
black format
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristofferEdlund committed Nov 14, 2023
1 parent 8ded8db commit f45ce38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion darwin/dataset/local_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def __init__(
partition,
split_type,
)

if len(self.images_path) == 0:
raise ValueError(
f"Could not find any {SUPPORTED_IMAGE_EXTENSIONS} file",
Expand Down Expand Up @@ -141,7 +142,7 @@ def _setup_annotations_and_images(
continue
else:
raise ValueError(
f"Annotation ({annotation_path}) does not have a corresponding image, image path : {image_path}"
f"Annotation ({annotation_path}) does not have a corresponding image"
)

def _initial_setup(self, dataset_path, release_name):
Expand Down

0 comments on commit f45ce38

Please sign in to comment.