Skip to content

Commit

Permalink
[parser] lazy_parse_simple_annotation_dir_by_task : パースできないタスクディレクト…
Browse files Browse the repository at this point in the history
…リはスキップする (#275)

* [parser] `lazy_parse_simple_annotation_dir_by_task` : パースできないタスクディレクトリはスキップする

* version up
  • Loading branch information
yuji38kwmt committed Jan 31, 2021
1 parent 2300709 commit 9f48746
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion annofabapi/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.42.1"
__version__ = "0.42.2"
6 changes: 5 additions & 1 deletion annofabapi/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,11 @@ def lazy_parse_simple_annotation_dir_by_task(annotaion_dir_path: Path) -> Iterat
if not task_dir.is_dir():
continue

yield SimpleAnnotationDirParserByTask(task_dir)
task_parser = SimpleAnnotationDirParserByTask(task_dir)
# lazy_parse_simple_annotation_zip_by_task の動きと対応させる
if len(task_parser.json_file_path_list) == 0:
continue
yield task_parser


def __parse_annotation_zip(zip_file_path: Path, clazz) -> Iterator[Any]:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "annofabapi"
version = "0.42.1"
version = "0.42.2"
description = "Python Clinet Library of AnnoFab WebAPI (https://annofab.com/docs/api/)"
authors = ["yuji38kwmt"]
license = "MIT"
Expand Down

0 comments on commit 9f48746

Please sign in to comment.