Skip to content

Commit

Permalink
blacked tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcfee committed Aug 16, 2024
1 parent e7ad7fc commit 64db1ed
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/test_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_display_segment():
mir_eval.display.segments(intervals, labels, text=False)

# Draw a legend
plt.legend(loc='upper right')
plt.legend(loc="upper right")
return plt.gcf()


Expand Down Expand Up @@ -126,7 +126,7 @@ def test_display_labeled_intervals_compare():
)
mir_eval.display.labeled_intervals(est_int, est_labels, alpha=0.5, label="Estimate")

plt.legend(loc='upper right')
plt.legend(loc="upper right")
return plt.gcf()


Expand All @@ -151,7 +151,7 @@ def test_display_labeled_intervals_compare_noextend():
est_int, est_labels, extend_labels=False, alpha=0.5, label="Estimate"
)

plt.legend(loc='upper right')
plt.legend(loc="upper right")
return plt.gcf()


Expand Down Expand Up @@ -198,7 +198,7 @@ def test_display_hierarchy_nolabel():
# Plot reference and estimate with a common label set
mir_eval.display.hierarchy([int0, int1], [lab0, lab1])

plt.legend(loc='upper right')
plt.legend(loc="upper right")
return plt.gcf()


Expand All @@ -218,7 +218,7 @@ def test_display_hierarchy_label():
# Plot reference and estimate with a common label set
mir_eval.display.hierarchy([int0, int1], [lab0, lab1], levels=["Large", "Small"])

plt.legend(loc='upper right')
plt.legend(loc="upper right")
return plt.gcf()


Expand All @@ -238,7 +238,7 @@ def test_display_pitch_hz():
# Plot pitches on a Hz scale
mir_eval.display.pitch(ref_times, ref_freqs, unvoiced=True, label="Reference")
mir_eval.display.pitch(est_times, est_freqs, unvoiced=True, label="Estimate")
plt.legend(loc='upper left')
plt.legend(loc="upper left")
return plt.gcf()


Expand Down Expand Up @@ -323,7 +323,7 @@ def test_display_multipitch_midi():
mir_eval.display.multipitch(ref_t, ref_p, midi=True, alpha=0.5, label="Reference")
mir_eval.display.multipitch(est_t, est_p, midi=True, alpha=0.5, label="Estimate")

plt.legend(loc='upper left')
plt.legend(loc="upper left")
return plt.gcf()


Expand Down Expand Up @@ -421,7 +421,7 @@ def test_display_separation_label():

mir_eval.display.separation([x0, x1, x2], fs=fs, labels=["Alice", "Bob", "Carol"])

plt.legend(loc='upper right')
plt.legend(loc="upper right")
return plt.gcf()


Expand All @@ -441,7 +441,7 @@ def test_display_events():
# Plot both with labels
mir_eval.display.events(beats_ref, label="reference")
mir_eval.display.events(beats_est, label="estimate")
plt.legend(loc='upper right')
plt.legend(loc="upper right")
return plt.gcf()


Expand Down

0 comments on commit 64db1ed

Please sign in to comment.