Skip to content

Commit e92e12d

Browse files
committed
Remove experimental where not needed
1 parent fa0c8bc commit e92e12d

File tree

5 files changed

+13
-33
lines changed

5 files changed

+13
-33
lines changed

libs/labelbox/src/labelbox/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2026,7 +2026,6 @@ def get_batch(self, project_id: str, batch_id: str) -> Entity.Batch:
20262026
get_batch_str,
20272027
{"projectId": project_id, "batchId": batch_id},
20282028
timeout=180.0,
2029-
experimental=True,
20302029
)["project"]["batches"]["nodes"][0]
20312030

20322031
return Entity.Batch(self, project_id, batch)

libs/labelbox/src/labelbox/schema/labeling_service.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ class LabelingService(_CamelCaseMixin):
2626

2727
def __init__(self, **kwargs):
2828
super().__init__(**kwargs)
29-
if not self.client.enable_experimental:
30-
raise RuntimeError(
31-
"Please enable experimental in client to use LabelingService"
32-
)
3329

3430
@classmethod
3531
def start(cls, client, project_id: Cuid) -> "LabelingService":

libs/labelbox/src/labelbox/schema/labeling_service_dashboard.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ class LabelingServiceDashboard(_CamelCaseMixin):
8383

8484
def __init__(self, **kwargs):
8585
super().__init__(**kwargs)
86-
if not self.client.enable_experimental:
87-
raise RuntimeError(
88-
"Please enable experimental in client to use LabelingService"
89-
)
9086

9187
@property
9288
def service_type(self):
@@ -140,7 +136,7 @@ def get(cls, client, project_id: str) -> "LabelingServiceDashboard":
140136
}}
141137
}}
142138
"""
143-
result = client.execute(query, {"id": project_id}, experimental=True)
139+
result = client.execute(query, {"id": project_id})
144140
if result["getProjectById"] is None:
145141
raise ResourceNotFoundError(
146142
message="The project does not have a labeling service data yet."
@@ -196,7 +192,6 @@ def convert_to_labeling_service_dashboard(client, data):
196192
dereferencing=["searchProjects", "nodes"],
197193
obj_class=convert_to_labeling_service_dashboard,
198194
cursor_path=["searchProjects", "pageInfo", "endCursor"],
199-
experimental=True,
200195
)
201196

202197
@model_validator(mode="before")

libs/labelbox/src/labelbox/schema/model_run.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,25 @@
77
from pathlib import Path
88
from typing import (
99
TYPE_CHECKING,
10+
Any,
1011
Dict,
1112
Iterable,
12-
Union,
13-
Tuple,
1413
List,
1514
Optional,
16-
Any,
15+
Tuple,
16+
Union,
1717
)
1818

19-
2019
from labelbox.orm.db_object import DbObject, experimental
21-
from labelbox.orm.model import Field, Relationship, Entity
20+
from labelbox.orm.model import Entity, Field, Relationship
2221
from labelbox.orm.query import results_query_part
2322
from labelbox.pagination import PaginatedCollection
2423
from labelbox.schema.conflict_resolution_strategy import (
2524
ConflictResolutionStrategy,
2625
)
2726
from labelbox.schema.export_params import ModelRunExportParams
2827
from labelbox.schema.export_task import ExportTask
29-
from labelbox.schema.identifiables import GlobalKeys, DataRowIds
28+
from labelbox.schema.identifiables import DataRowIds, GlobalKeys
3029
from labelbox.schema.send_to_annotate_params import (
3130
SendToAnnotateFromModelParams,
3231
build_destination_task_queue_input,
@@ -458,7 +457,6 @@ def update_status(
458457
experimental=True,
459458
)
460459

461-
@experimental
462460
def update_config(self, config: Dict[str, Any]) -> Dict[str, Any]:
463461
"""
464462
Updates the Model Run's training metadata config
@@ -474,11 +472,9 @@ def update_config(self, config: Dict[str, Any]) -> Dict[str, Any]:
474472
}
475473
""",
476474
{"modelRunId": self.uid, "data": data},
477-
experimental=True,
478475
)
479476
return res["updateModelRunConfig"]
480477

481-
@experimental
482478
def reset_config(self) -> Dict[str, Any]:
483479
"""
484480
Resets Model Run's training metadata config
@@ -491,11 +487,9 @@ def reset_config(self) -> Dict[str, Any]:
491487
}
492488
""",
493489
{"modelRunId": self.uid},
494-
experimental=True,
495490
)
496491
return res["resetModelRunConfig"]
497492

498-
@experimental
499493
def get_config(self) -> Dict[str, Any]:
500494
"""
501495
Gets Model Run's training metadata
@@ -508,7 +502,6 @@ def get_config(self) -> Dict[str, Any]:
508502
}
509503
""",
510504
{"modelRunId": self.uid},
511-
experimental=True,
512505
)
513506
return res["modelRun"]["trainingMetadata"]
514507

libs/labelbox/src/labelbox/schema/project.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
from labelbox import utils
2828
from labelbox.orm import query
29-
from labelbox.orm.db_object import DbObject, Deletable, Updateable, experimental
29+
from labelbox.orm.db_object import DbObject, Deletable, Updateable
3030
from labelbox.orm.model import Entity, Field, Relationship
3131
from labelbox.pagination import PaginatedCollection
3232
from labelbox.schema.consensus_settings import ConsensusSettings
@@ -861,9 +861,9 @@ def create_batches(
861861
},
862862
}
863863

864-
tasks = self.client.execute(mutation_str, params, experimental=True)[
865-
"project"
866-
][method]["tasks"]
864+
tasks = self.client.execute(mutation_str, params)["project"][method][
865+
"tasks"
866+
]
867867
batch_ids = [task["batchUuid"] for task in tasks]
868868
task_ids = [task["taskId"] for task in tasks]
869869

@@ -926,9 +926,9 @@ def create_batches_from_dataset(
926926
},
927927
}
928928

929-
tasks = self.client.execute(mutation_str, params, experimental=True)[
930-
"project"
931-
][method]["tasks"]
929+
tasks = self.client.execute(mutation_str, params)["project"][method][
930+
"tasks"
931+
]
932932

933933
batch_ids = [task["batchUuid"] for task in tasks]
934934
task_ids = [task["taskId"] for task in tasks]
@@ -1595,7 +1595,6 @@ def clone(self) -> "Project":
15951595
result = self.client.execute(mutation, {"projectId": self.uid})
15961596
return self.client.get_project(result["cloneProject"]["id"])
15971597

1598-
@experimental
15991598
def get_labeling_service(self) -> LabelingService:
16001599
"""Get the labeling service for this project.
16011600
@@ -1606,7 +1605,6 @@ def get_labeling_service(self) -> LabelingService:
16061605
"""
16071606
return LabelingService.getOrCreate(self.client, self.uid)
16081607

1609-
@experimental
16101608
def get_labeling_service_status(self) -> LabelingServiceStatus:
16111609
"""Get the labeling service status for this project.
16121610
@@ -1618,7 +1616,6 @@ def get_labeling_service_status(self) -> LabelingServiceStatus:
16181616
"""
16191617
return self.get_labeling_service().status
16201618

1621-
@experimental
16221619
def get_labeling_service_dashboard(self) -> LabelingServiceDashboard:
16231620
"""Get the labeling service for this project.
16241621

0 commit comments

Comments
 (0)