Skip to content

Commit

Permalink
Update SDK to version 0.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Roboto-Bot-O committed Sep 26, 2024
1 parent fc69cbb commit 72ef029
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 5 deletions.
2 changes: 2 additions & 0 deletions build-support/requirements/tools/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ module = [
"jose.*",
"markdown",
"nanoid",
"numpy.*",
"pandas.*",
"pluggy",
"stumpy.*",
"tqdm.*",
Expand Down
6 changes: 6 additions & 0 deletions src/roboto/domain/events/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ def put_metadata(self, metadata: dict[str, typing.Any]) -> "Event":
def put_tags(self, tags: list[str]) -> "Event":
return self.update(metadata_changeset=MetadataChangeset(put_tags=tags))

def refresh(self) -> "Event":
self.__record = self.__roboto_client.get(
f"v1/events/id/{self.event_id}"
).to_record(EventRecord)
return self

def remove_metadata(
self,
metadata: StrSequence,
Expand Down
6 changes: 6 additions & 0 deletions src/roboto/domain/files/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,12 @@ def put_metadata(self, metadata: dict[str, typing.Any]) -> "File":
def put_tags(self, tags: list[str]) -> "File":
return self.update(metadata_changeset=MetadataChangeset(put_tags=tags))

def refresh(self) -> "File":
self.__record = self.__roboto_client.get(
f"v1/files/record/{self.file_id}"
).to_record(FileRecord)
return self

def rename_file(self, file_id: str, new_path: str) -> FileRecord:

response = self.__roboto_client.put(
Expand Down
2 changes: 1 addition & 1 deletion src/roboto/domain/topics/message_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from .topic_data_service import TopicDataService

if typing.TYPE_CHECKING:
import pandas
import pandas # pants: no-infer-dep

PreComputedStat: typing.TypeAlias = typing.Optional[typing.Union[int, float]]

Expand Down
2 changes: 1 addition & 1 deletion src/roboto/domain/topics/topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
from .topic_data_service import TopicDataService

if typing.TYPE_CHECKING:
import pandas
import pandas # pants: no-infer-dep

logger = default_logger()

Expand Down
2 changes: 1 addition & 1 deletion src/roboto/query/signal_similarity/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import typing

if typing.TYPE_CHECKING:
import numpy.typing
import numpy.typing # pants: no-infer-dep


@dataclasses.dataclass(frozen=True)
Expand Down
2 changes: 1 addition & 1 deletion src/roboto/query/signal_similarity/query_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .match import Match

if typing.TYPE_CHECKING:
import numpy.typing
import numpy.typing # pants: no-infer-dep


class QuerySignal:
Expand Down
3 changes: 2 additions & 1 deletion src/roboto/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
__version__ = "0.9.3.dev0+g45e8159a.d20240925"
__version__ = "0.9.2"

__all__= ("__version__",)

0 comments on commit 72ef029

Please sign in to comment.