Skip to content

Commit

Permalink
black formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rythmm24 committed Jan 22, 2024
1 parent e18dea5 commit febe1b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions mirdata/datasets/cuidado.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ def load_beats(fhandle: TextIO):
if not beat_times or beat_times[0] == -1.0:
return None

Check warning on line 188 in mirdata/datasets/cuidado.py

View check run for this annotation

Codecov / codecov/patch

mirdata/datasets/cuidado.py#L188

Added line #L188 was not covered by tests

return annotations.BeatData(
np.array(beat_times), "s", None, "bar_index"
)
return annotations.BeatData(np.array(beat_times), "s", None, "bar_index")


@io.coerce_to_string_io
Expand Down Expand Up @@ -225,4 +223,4 @@ def __init__(self, data_home=None, version="default"):
remotes=REMOTES,
license_info=LICENSE_INFO,
download_info=DOWNLOAD_INFO,
)
)
2 changes: 1 addition & 1 deletion tests/datasets/test_cuidado.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ def test_load_audio():
assert sr == 44100
assert type(audio) == np.ndarray

assert cuidado.load_audio(None) is None
assert cuidado.load_audio(None) is None

0 comments on commit febe1b7

Please sign in to comment.