Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
talmo committed Apr 14, 2024
1 parent 9fe8191 commit 8d5ceb1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sleap_io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
load_jabs,
save_jabs,
load_video,
load_file
load_file,
)
6 changes: 3 additions & 3 deletions sleap_io/io/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def load_labelstudio(

def save_labelstudio(labels: Labels, filename: str):
"""Save a SLEAP dataset to Label Studio format.
Args:
labels: A SLEAP `Labels` object (see `load_slp`).
filename: Path to save labels to ending with `.json`.
Expand Down Expand Up @@ -115,7 +115,7 @@ def save_jabs(labels: Labels, pose_version: int, root_folder: Optional[str] = No

def load_video(filename: str, **kwargs) -> Video:
"""Load a video file.
Args:
filename: Path to a video file.
Expand Down Expand Up @@ -145,4 +145,4 @@ def load_file(filename: str, **kwargs) -> Union[Labels, Video]:
elif filename.endswith(".h5"):
return load_jabs(filename)
else:
return load_video(filename, **kwargs)
return load_video(filename, **kwargs)

Check warning on line 148 in sleap_io/io/main.py

View check run for this annotation

Codecov / codecov/patch

sleap_io/io/main.py#L148

Added line #L148 was not covered by tests
2 changes: 1 addition & 1 deletion tests/io/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
load_jabs,
save_jabs,
load_video,
load_file
load_file,
)


Expand Down

0 comments on commit 8d5ceb1

Please sign in to comment.