Skip to content

Commit

Permalink
Fix formatting and type checking for vendored code.
Browse files Browse the repository at this point in the history
  • Loading branch information
psobot committed May 11, 2023
1 parent 7ac94ec commit a8406f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion realbook/callbacks/spectrogram_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def on_train_begin(self, logs: Any = None) -> None:

with self.tensorboard_writer.as_default():
# Pull n random batches from the dataset and send them to TensorBoard.
for (data, _) in self.example_batches:
for data, _ in self.example_batches:
assert tf.rank(data) == 2, "Expected input data to be of rank 2, with shape (batch, audio)."
assert tf.shape(data)[0] < tf.shape(data)[1], (
"Expected input data to be of rank 2, with shape (batch, audio), but got shape"
Expand Down
3 changes: 3 additions & 0 deletions realbook/vendor/librosa_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.

# This is all copied from Librosa: don't bother type checking with MyPy.
# type: ignore

import warnings
import scipy
import numpy as np
Expand Down

0 comments on commit a8406f7

Please sign in to comment.