File tree Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -657,21 +657,11 @@ def review_metrics(self, net_score) -> int:
657
657
res = self .client .execute (query_str , {id_param : self .uid })
658
658
return res ["project" ]["reviewMetrics" ]["labelAggregate" ]["count" ]
659
659
660
- def setup_editor (self , ontology ) -> None :
661
- """
662
- Sets up the project using the Pictor editor.
663
-
664
- Args:
665
- ontology (Ontology): The ontology to attach to the project
666
- """
667
- warnings .warn ("This method is deprecated use connect_ontology instead." )
668
- self .connect_ontology (ontology )
669
-
670
660
def connect_ontology (self , ontology ) -> None :
671
661
"""
672
662
Connects the ontology to the project. If an editor is not setup, it will be connected as well.
673
663
674
- Note: For live chat model evaluation projects, the editor setup is skipped becase it is automatically setup when the project is created.
664
+ Note: For live chat model evaluation projects, the editor setup is skipped because it is automatically setup when the project is created.
675
665
676
666
Args:
677
667
ontology (Ontology): The ontology to attach to the project
Original file line number Diff line number Diff line change @@ -72,13 +72,3 @@ def test_project_editor_task_type(
72
72
)
73
73
74
74
assert project .editor_task_type == expected_editor_task_type
75
-
76
-
77
- def test_setup_editor_using_connect_ontology (project_entity ):
78
- project = project_entity
79
- ontology = MagicMock ()
80
- project .connect_ontology = MagicMock ()
81
- with patch ("warnings.warn" ) as warn :
82
- project .setup_editor (ontology )
83
- warn .assert_called_once ()
84
- project .connect_ontology .assert_called_once_with (ontology )
You can’t perform that action at this time.
0 commit comments