-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[annotation import] 標準プラグインを使った3次元プロジェクトにもアノテーションをインポートできるようにする (#907)
* 暫定対応をコミット * poetry update * 不要なクラスを削除 * fillnaする列を限定させる * [statistics visualize] temporaryディレクトリを削除するようにする * poetry update * 3次元アノテーションのimport * [comment list] JSON構造を出力する * format * ログの修正 * ログメッセージの修正
- Loading branch information
1 parent
12e1734
commit 0974a0b
Showing
13 changed files
with
187 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import annofabapi | ||
from annofabapi.plugin import EditorPluginId, ExtendSpecsPluginId | ||
|
||
|
||
class Project: | ||
""" | ||
Annofabプロジェクトに対応するクラス | ||
""" | ||
|
||
def __init__(self, service: annofabapi.Resource, project_id: str) -> None: | ||
project, _ = service.api.get_project(project_id) | ||
self.project = project | ||
|
||
def is_3d_annotation_editor_available(self): | ||
"""標準の3次元アノテーションエディタを利用できるか""" | ||
configuration = self.project["configuration"] | ||
return configuration["plugin_id"] == EditorPluginId.THREE_DIMENSION | ||
|
||
def is_3d_annotation_type_available(self): | ||
"""3次元のアノテーション種類を利用できるか""" | ||
configuration = self.project["configuration"] | ||
return configuration["extended_specs_plugin_id"] == ExtendSpecsPluginId.THREE_DIMENSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.