Skip to content

Commit 779d776

Browse files
committed
lint with black and isort
1 parent 9e77929 commit 779d776

27 files changed

+24
-4
lines changed

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Python
2727
uses: actions/setup-python@v4
2828
with:
29-
python-version: 3.8
29+
python-version: 3.9
3030

3131
- name: Install Python dependencies
3232
run: pip install black flake8 isort

examples/adaptive_filter_stft_domain.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
In this example, we will run adaptive filters for system
66
identification, but in the frequeny domain.
77
"""
8+
89
from __future__ import division, print_function
910

1011
import matplotlib.pyplot as plt

examples/adaptive_filters.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
In this example, we will run adaptive filters for system identification.
66
"""
7+
78
from __future__ import division, print_function
89

910
import matplotlib.pyplot as plt

examples/beamforming_delay_and_sum.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This example shows how to create delay and sum beamformers
33
"""
4+
45
from __future__ import division, print_function
56

67
import matplotlib.pyplot as plt

examples/bss_example.py

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
5555
This script requires the `mir_eval` to run, and `tkinter` and `sounddevice` packages for the GUI option.
5656
"""
57+
5758
import time
5859

5960
import numpy as np

examples/datasets.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Example of the basic operations with ``pyroomacoustics.datasets.Dataset``
33
and ``pyroomacoustics.datasets.Sample`` classes
44
"""
5+
56
from pyroomacoustics.datasets import Dataset, Sample
67

78
# Prepare a few artificial samples

examples/raytracing.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This example program demonstrates the use of ray tracing
33
for the simulation of rooms of different sizes.
44
"""
5+
56
from __future__ import print_function
67

78
import argparse

examples/room_L_shape_3d_rt.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
88
The simulation is done using the hybrid ISM/RT simulator.
99
"""
10+
1011
from __future__ import print_function
1112

1213
import time

examples/room_complex_wall_materials.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
2022 (c) @noahdeetzers, @fakufaku
66
"""
7+
78
import matplotlib.pyplot as plt
89
import numpy as np
910

examples/room_from_rt60.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
The simulation is pure image source method.
55
The audio sample with the reverb added is saved back to `examples/samples/guitar_16k_reverb.wav`.
66
"""
7+
78
import argparse
89

910
import matplotlib.pyplot as plt

examples/room_from_stl.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
66
The STL file was kindly provided by Diego Di Carlo (@Chutlhu).
77
"""
8+
89
import argparse
910
import os
1011
from pathlib import Path

pyroomacoustics/adaptive/lms.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Implementations of adaptive filters from the LMS class. These algorithms have a
66
low complexity and reliable behavior with a somewhat slower convergence.
77
"""
8+
89
from __future__ import absolute_import, division, print_function
910

1011
import numpy as np

pyroomacoustics/adaptive/subband_lms.py

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727

2828
class SubbandLMS:
29-
3029
"""
3130
Frequency domain implementation of LMS. Adaptive filter for each
3231
subband.

pyroomacoustics/beamforming.py

-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ def circular_microphone_array_xyplane(
348348

349349

350350
class MicrophoneArray(object):
351-
352351
"""Microphone array class."""
353352

354353
def __init__(self, R, fs, directivity=None):

pyroomacoustics/datasets/cmu_arctic.py

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
3030
URL: http://www.festvox.org/cmu_arctic/
3131
"""
32+
3233
import os
3334

3435
import numpy as np

pyroomacoustics/datasets/tests/test_corpus_base.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Example of the basic operations with ``pyroomacoustics.datasets.Dataset``
33
and ``pyroomacoustics.datasets.Sample`` classes
44
"""
5+
56
from pyroomacoustics.datasets import Dataset, Sample
67

78

pyroomacoustics/doa/grid.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Routines to perform grid search on the sphere
33
"""
4+
45
from __future__ import absolute_import, division, print_function
56

67
from abc import ABCMeta, abstractmethod

pyroomacoustics/doa/plotters.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
A collection of functions to plot maps and points on circles and spheres.
33
"""
4+
45
import numpy as np
56

67

pyroomacoustics/doa/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This module contains useful functions to compute distances and errors on on
33
circles and spheres.
44
"""
5+
56
from __future__ import division
67

78
import numpy as np

pyroomacoustics/experimental/signals.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
A few test signals like sweeps and stuff.
33
"""
4+
45
from __future__ import division, print_function
56

67
import numpy as np

pyroomacoustics/tests/test_bandpass_filterbank.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This tests the construction of a bank of octave filters
33
"""
4+
45
import numpy as np
56
from scipy.signal import sosfreqz
67

pyroomacoustics/tests/test_issue_22.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
If the C module is not installed (pure python
1515
fallback version), then nothing is done.
1616
"""
17+
1718
import numpy as np
1819

1920
import pyroomacoustics

pyroomacoustics/tests/test_materials.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Just run the Material command with a bunch of inputs to make sure
33
it works as expected
44
"""
5+
56
import pyroomacoustics as pra
67

78
scat_test = {

pyroomacoustics/tests/test_random_ism.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
66
Script to test removal of sweeping echoes with randomized image method
77
"""
8+
89
import pyroomacoustics as pra
910
from pyroomacoustics import metrics as met
1011

pyroomacoustics/tests/test_room_mix.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Tests the mixing function of ``Room.simulate``
33
"""
4+
45
import unittest
56

67
import numpy as np

pyroomacoustics/tests/tests_libroom/test_shoebox_simple.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
It was created to address Issue #293 on github.
88
https://github.com/LCAV/pyroomacoustics/issues/293<Paste>
99
"""
10+
1011
import numpy as np
1112
import pytest
1213

pyroomacoustics/transform/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
1616
"""
1717

18-
1918
from . import stft
2019
from .dft import DFT
2120
from .stft import STFT

0 commit comments

Comments
 (0)