Skip to content

Commit

Permalink
More kw-args
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Sep 28, 2023
1 parent 963a6b9 commit 6ac92c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion rerun_py/rerun_sdk/rerun/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def _init_recording_stream() -> None:

def init(
application_id: str,
*,
recording_id: str | None = None,
spawn: bool = False,
init_logging: bool = True,
Expand Down Expand Up @@ -302,7 +303,7 @@ def init(

if init_logging:
new_recording(
application_id,
application_id=application_id,
recording_id=recording_id,
make_default=True,
make_thread_default=False,
Expand All @@ -327,6 +328,7 @@ def init(


def new_recording(
*,
application_id: str,
recording_id: str | None = None,
make_default: bool = False,
Expand Down
4 changes: 3 additions & 1 deletion rerun_py/rerun_sdk/rerun/recording.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ def reset_data(self) -> None:
"""Reset the data in the MemoryRecording."""
self.storage.reset_data()

def reset_blueprint(self, add_to_app_default_blueprint: bool = False) -> None:
def reset_blueprint(self, *, add_to_app_default_blueprint: bool = False) -> None:
"""Reset the blueprint in the MemoryRecording."""
self.storage.reset_blueprint(add_to_app_default_blueprint)

def as_html(
self,
*,
width: int = DEFAULT_WIDTH,
height: int = DEFAULT_HEIGHT,
app_url: str | None = None,
Expand Down Expand Up @@ -107,6 +108,7 @@ def as_html(

def show(
self,
*,
other: MemoryRecording | None = None,
width: int = DEFAULT_WIDTH,
height: int = DEFAULT_HEIGHT,
Expand Down

0 comments on commit 6ac92c3

Please sign in to comment.