Skip to content

Commit e5b1d2a

Browse files
authored
Merge branch 'develop' into friday
2 parents 6f14758 + b88fe59 commit e5b1d2a

File tree

4 files changed

+24
-12
lines changed

4 files changed

+24
-12
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install dependencies
1717
run: |
1818
python -m pip install --upgrade pip
19-
pip install setuptools wheel twine
19+
pip install setuptools wheel twine packaging
2020
- name: Create distribution files
2121
run: python setup.py sdist
2222
- name: Publish distribution to PyPI

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22
All release higlighths of this project will be documented in this file.
3+
## 4.3.2 - April 10 2022
4+
### Added
5+
- `query()` function to run SAQuL queries via SDK.
6+
- `search_items()` function to search items by various filtering criteria for all supported project types. `search_images()` and `search_images_all_folders()` functions will be deprecated.
7+
- `get_item_metadata()` function to get item metadata for all supported project types. `get_image_metadata()` will be deprecated.
8+
### Updated
9+
- `search_projects()` function to add new parameter that gives an option to filter projects by project `status`.
10+
- `get_annotation_per_frame()` function to add a unique identifier for each annotation instance.
11+
### Fixed
12+
- pixel annotations to address the issue with the hex code.
13+
- `sa.validate_annotations()` function to address the incorrect error message.
14+
- `create_project_from_metadata()` function to address the issue with instructions.
15+
### Removed
16+
- `get_image_annotations()` function. Please use `get_annotations()`
17+
- `upload_images_from_public_urls()` function.
18+
###
319
## 4.3.1 - March 20 2022
420
### Added
521
- `get_integrations()` to list all existing integrations with cloud storages.

requirements_prod.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
superannotate_schemas==1.0.40
1+
superannotate_schemas==1.0.41

src/superannotate/lib/app/interface/sdk_interface.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2451,7 +2451,7 @@ def get_annotations_per_frame(project: NotEmptyStr, video: NotEmptyStr, fps: int
24512451
@Trackable
24522452
@validate_arguments
24532453
def upload_priority_scores(project: NotEmptyStr, scores: List[PriorityScore]):
2454-
"""Returns per frame annotations for the given video.
2454+
"""Upload priority scores for the given list of items.
24552455
24562456
:param project: project name or folder path (e.g., “project1/folder1”)
24572457
:type project: str
@@ -2636,7 +2636,7 @@ def attach_items(
26362636
:type project: str
26372637
26382638
:param attachments: path to CSV file or list of dicts containing attachments URLs.
2639-
:type project: path-like (str or Path) or list of dicts
2639+
:type attachments: path-like (str or Path) or list of dicts
26402640
26412641
:param annotation_status: value to set the annotation statuses of the linked items
26422642
“NotStarted”
@@ -2646,8 +2646,6 @@ def attach_items(
26462646
“Completed”
26472647
“Skipped”
26482648
:type annotation_status: str
2649-
2650-
:return: None
26512649
"""
26522650
attachments = attachments.data
26532651
project_name, folder_name = extract_project_folder(project)
@@ -2775,7 +2773,7 @@ def move_items(
27752773
def set_annotation_statuses(
27762774
project: Union[NotEmptyStr, dict],
27772775
annotation_status: AnnotationStatuses,
2778-
item_names: Optional[List[NotEmptyStr]] = None,
2776+
items: Optional[List[NotEmptyStr]] = None,
27792777
):
27802778
"""Sets annotation statuses of items
27812779
@@ -2791,18 +2789,16 @@ def set_annotation_statuses(
27912789
“Skipped”
27922790
:type annotation_status: str
27932791
2794-
:param item_names: item names to set the mentioned status for. If None, all the items in the project will be used.
2795-
:type item_names: str
2796-
2797-
:return: None
2792+
:param items: item names to set the mentioned status for. If None, all the items in the project will be used.
2793+
:type items: str
27982794
"""
27992795

28002796
project_name, folder_name = extract_project_folder(project)
28012797
response = Controller.get_default().set_annotation_statuses(
28022798
project_name=project_name,
28032799
folder_name=folder_name,
28042800
annotation_status=annotation_status,
2805-
item_names=item_names,
2801+
item_names=items,
28062802
)
28072803
if response.errors:
28082804
raise AppException(response.errors)

0 commit comments

Comments
 (0)