Skip to content

Commit 2a5f807

Browse files
Merge pull request #23 from kili-technology/feature/lab-4065-aau-i-see-sub-jobs-of-level-2-in-exports-for-split-projects
fix(lab-4065): repair deep sub jobs of Classifications
2 parents 3175723 + 5376005 commit 2a5f807

File tree

6 files changed

+1481
-5
lines changed

6 files changed

+1481
-5
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,11 @@ clean_json_response(asset)
3333
## Development
3434

3535
If you want to contribute, here are the [installation steps](CONTRIBUTING.md)
36+
37+
## Release
38+
39+
To release a new version:
40+
41+
1. Update pyproject.toml with the new version number
42+
2. Tag the merge commit
43+
3. Create a release note using the tag previously created

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "kili-formats"
3-
version = "0.2.9"
3+
version = "0.2.10"
44
description = ""
55
authors = [{ name = "Kili Technology", email = "contact@kili-technology.com" }]
66
license = { file = "LICENSE.txt" }

src/kili_formats/tool/annotations_to_json_response.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,7 @@ def _compute_children_json_resp(
518518
if child_ann["__typename"] == "ClassificationAnnotation":
519519
child_ann = cast(ClassificationAnnotation, child_ann)
520520
other_annotations = cast(List[ClassicAnnotation], other_annotations)
521-
sub_job_resp = _classification_annotation_to_json_response(
522-
child_ann, _get_child_annotations(child_ann, other_annotations)
523-
)
521+
sub_job_resp = _classification_annotation_to_json_response(child_ann, other_annotations)
524522

525523
elif child_ann["__typename"] == "RankingAnnotation":
526524
child_ann = cast(RankingAnnotation, child_ann)
@@ -534,7 +532,7 @@ def _compute_children_json_resp(
534532
child_ann = cast(VideoClassificationAnnotation, child_ann)
535533
other_annotations = cast(List[VideoAnnotation], other_annotations)
536534
sub_job_resp = _video_classification_annotation_to_json_response(
537-
child_ann, _get_child_annotations(child_ann, other_annotations)
535+
child_ann, other_annotations
538536
)
539537

540538
elif child_ann["__typename"] == "VideoTranscriptionAnnotation":

0 commit comments

Comments
 (0)