Skip to content

Commit 5cde163

Browse files
committed
[QQC-549] Add deprecation notice for missing queue_mode & quality settings
1 parent 0b07251 commit 5cde163

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

labelbox/client.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,15 @@ def create_project(self, **kwargs) -> Project:
630630
f" any of {MediaType.get_supported_members()}"
631631
" from MediaType. Example: MediaType.Image.")
632632

633+
queue_mode = kwargs.get("queue_mode")
634+
auto_audit_number_of_labels = kwargs.get("auto_audit_number_of_labels")
635+
auto_audit_percentage = kwargs.get("auto_audit_percentage")
636+
if not queue_mode or not auto_audit_number_of_labels or not auto_audit_percentage:
637+
logger.warning(
638+
"Creating a project without specifying all of queue_mode, auto_audit_number_of_labels"
639+
" and auto_audit_percentage through this method will soon no longer be supported."
640+
)
641+
633642
return self._create(Entity.Project, kwargs)
634643

635644
def get_roles(self) -> List[Role]:

0 commit comments

Comments
 (0)