Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fakufaku committed Nov 9, 2024
1 parent 9cf7c03 commit e980556
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 15 deletions.
1 change: 1 addition & 0 deletions examples/plot_directivity_2D.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import matplotlib.pyplot as plt
import numpy as np

from pyroomacoustics import dB
from pyroomacoustics.directivities import (
CardioidFamily,
Expand Down
7 changes: 3 additions & 4 deletions examples/plot_directivity_3D.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import numpy as np
import matplotlib.pyplot as plt
import numpy as np

from pyroomacoustics.directivities import (
DirectivityPattern,
DirectionVector,
CardioidFamily,
DirectionVector,
DirectivityPattern,
)


PATTERN = DirectivityPattern.HYPERCARDIOID
ORIENTATION = DirectionVector(azimuth=0, colatitude=45, degrees=True)

Expand Down
8 changes: 4 additions & 4 deletions examples/plot_directivity_one_shot.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import numpy as np
import matplotlib.pyplot as plt
import numpy as np

from pyroomacoustics import dB, all_combinations
from pyroomacoustics import all_combinations, dB
from pyroomacoustics.directivities import (
DirectivityPattern,
DirectionVector,
CardioidFamily,
DirectionVector,
DirectivityPattern,
cardioid_func,
)
from pyroomacoustics.doa import spher2cart
Expand Down
4 changes: 2 additions & 2 deletions pyroomacoustics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@

import warnings

from . import adaptive, bss, datasets, denoise, doa, experimental, random
from . import adaptive, bss, datasets, denoise, doa, experimental
from . import libroom as libroom
from . import phase, transform
from . import phase, random, transform
from .acoustics import *
from .beamforming import *
from .directivities import *
Expand Down
2 changes: 1 addition & 1 deletion pyroomacoustics/directivities/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@
from .analytic import (
Cardioid,
CardioidFamily,
CardioidFamilySampler,
FigureEight,
HyperCardioid,
Omnidirectional,
SubCardioid,
CardioidFamilySampler,
cardioid_func,
)
from .base import Directivity
Expand Down
2 changes: 1 addition & 1 deletion pyroomacoustics/directivities/analytic.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
"""
import numpy as np

from .. import random
from ..doa import spher2cart
from ..utilities import all_combinations, requires_matplotlib
from .base import Directivity
from .direction import DirectionVector
from .. import random

_FIGURE_EIGHT = 0
_HYPERCARDIOID = 0.25
Expand Down
2 changes: 1 addition & 1 deletion pyroomacoustics/directivities/measured.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@
from scipy.interpolate import griddata
from scipy.spatial import cKDTree

from .. import random
from ..datasets import SOFADatabase
from ..doa import Grid, GridSphere, cart2spher, fibonacci_spherical_sampling, spher2cart
from ..utilities import requires_matplotlib
from .base import Directivity
from .direction import Rotation3D
from .interp import spherical_interpolation
from .sofa import open_sofa_file
from .. import random


class MeasuredDirectivitySampler(random.sampler.DirectionalSampler):
Expand Down
2 changes: 1 addition & 1 deletion pyroomacoustics/doa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@
from .doa import *
from .frida import *
from .grid import *
from .histogram import SphericalHistogram
from .music import *
from .normmusic import *
from .srp import *
from .tops import *
from .utils import *
from .waves import *
from .histogram import SphericalHistogram

# Create this dictionary as a shortcut to different algorithms
algorithms = {
Expand Down
2 changes: 1 addition & 1 deletion pyroomacoustics/random/tests/test_spherical.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def test_stat_prop_power_spherical():

if __name__ == "__main__":

import numpy as np
import matplotlib.pyplot as plt
import mpl_toolkits.mplot3d.axes3d as axes3d
import numpy as np

# let's visualize samples in the sphere

Expand Down
1 change: 1 addition & 0 deletions pyroomacoustics/tests/test_source_directivity_flipping.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from unittest import TestCase

import numpy as np

import pyroomacoustics as pra
from pyroomacoustics.simulation.ism import source_angle_shoebox

Expand Down
1 change: 1 addition & 0 deletions pyroomacoustics/tests/tests_libroom/test_microphone.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import matplotlib.pyplot as plt
import numpy as np

import pyroomacoustics as pra


Expand Down

0 comments on commit e980556

Please sign in to comment.