Skip to content

[PLT-1485] Removed Datatypes #1830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 41 commits into from
Sep 23, 2024
Merged

[PLT-1485] Removed Datatypes #1830

merged 41 commits into from
Sep 23, 2024

Conversation

Gabefire
Copy link
Collaborator

@Gabefire Gabefire commented Sep 18, 2024

Description

  • Removed datatypes from SDK besides generic and mask data (needed for mask annotations) and geotile
    Geotile has to stay because it has parameters that are need for the label like zoom level

@Gabefire Gabefire requested a review from a team as a code owner September 18, 2024 19:59
@Gabefire Gabefire changed the title Removed Datatypes [PLT-1485] Removed Datatypes Sep 18, 2024
@@ -40,26 +40,6 @@ def _assign_ids(label: Label):
self._fns["assign_feature_schema_ids"] = _assign_ids
return self

def add_url_to_data(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this function. This is not supported by GenericDataType and I do not think this is relevant any longer. Check doc string for what it does

@@ -91,37 +93,23 @@ def test_adding_schema_ids():
assert next(generator).annotations[0].feature_schema_id == feature_schema_id


def test_adding_urls(signer):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed due to removing function

Copy link
Contributor

@vbrodsky vbrodsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left 2 tiny comments

@@ -232,7 +232,7 @@ def from_common(
name: str,
feature_schema_id: Cuid,
extra: Dict[str, Any],
data: Union[TextData, ImageData],
data: Union[GenericDataRowData],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need Union here?

@@ -264,7 +264,7 @@ def from_common(
name: str,
feature_schema_id: Cuid,
extra: Dict[str, Any],
data: Union[VideoData, TextData, ImageData],
data: Union[GenericDataRowData],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Union?

@Gabefire Gabefire merged commit 3f19342 into v6 Sep 23, 2024
17 of 26 checks passed
@Gabefire Gabefire deleted the gu/remove_data_types branch September 23, 2024 21:29
vbrodsky pushed a commit that referenced this pull request Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants