File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
tests/integration/projects Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11from pathlib import Path
22
3- from superannotate .lib .core .enums import ProjectStatus
43from superannotate .lib .core .enums import AnnotationStatus
54from superannotate .lib .core .enums import ImageQuality
5+ from superannotate .lib .core .enums import ProjectStatus
66from superannotate .lib .core .enums import ProjectType
77from superannotate .lib .core .enums import SegmentationStatus
88from superannotate .lib .core .enums import TrainingStatus
Original file line number Diff line number Diff line change @@ -2732,7 +2732,7 @@ def validate_uniqueness(self):
27322732
27332733 def validate_project_type (self ):
27342734 if (
2735- self ._project .project_type != ProjectType .VECTOR .value
2735+ self ._project .project_type in ( ProjectType .PIXEL .value and ProjectType . VIDEO . value )
27362736 and self ._annotation_class .type == "tag"
27372737 ):
27382738 raise AppException (
@@ -2846,9 +2846,9 @@ def __init__(
28462846 self ._project = project
28472847
28482848 def validate_project_type (self ):
2849- if self ._project .project_type != ProjectType .VECTOR .value and "tag" in [
2850- i . type for i in self ._annotation_classes
2851- ]:
2849+ if self ._project .project_type in ( ProjectType .PIXEL .value , ProjectType . VIDEO . value ) and "tag" in any ( [
2850+ True for i in self ._annotation_classes if i . type == "tag"
2851+ ]) :
28522852 raise AppException (
28532853 f"Predefined tagging functionality is not supported for projects of type { ProjectType .get_name (self ._project .project_type )} ."
28542854 )
Original file line number Diff line number Diff line change 11import asyncio
22import json
3- import time
43from contextlib import contextmanager
54from datetime import datetime
65from typing import Dict
You can’t perform that action at this time.
0 commit comments