Skip to content

Commit

Permalink
fix: adds place holder title for imported coco project (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
Encord-davids authored Feb 16, 2023
1 parent 0e90ea5 commit f87ada7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/encord_active/lib/coco/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ def __init__(
self.category_shapes = _infer_category_shapes(self.annotations)
self.id_mappings: Dict[Tuple[int, Shape], int] = {}

title = self.info.description.replace(" ", "-")
self.title = f"[EA] {title}"
title = self.info.description or "new project"
self.title = f"[EA] {title}".replace(" ", "-")

self.project_dir = destination_dir / self.title

self.user_client = LocalUserClient(self.project_dir)
Expand Down

0 comments on commit f87ada7

Please sign in to comment.