Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fakufaku committed Jan 3, 2025
1 parent e452781 commit fd8fd96
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 13 deletions.
10 changes: 5 additions & 5 deletions pyroomacoustics/directivities/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,21 @@
"""
from .analytic import (
Cardioid,
CardioidEnergyDistribution,
CardioidFamily,
FigureEight,
HyperCardioid,
Omnidirectional,
SubCardioid,
cardioid_func,
cardioid_energy,
CardioidEnergyDistribution,
cardioid_func,
)
from .histogram import SphericalHistogram
from .integration import spherical_integral
from .base import Directivity
from .direction import DirectionVector, Rotation3D
from .histogram import SphericalHistogram
from .integration import spherical_integral
from .measured import (
MeasuredDirectivity,
MeasuredDirectivityFile,
MeasuredDirectivityEnergyDistribution,
MeasuredDirectivityFile,
)
1 change: 0 additions & 1 deletion pyroomacoustics/directivities/analytic.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
from .. import random
from ..doa import spher2cart
from ..utilities import all_combinations, requires_matplotlib
from .. import random
from .base import Directivity
from .direction import DirectionVector

Expand Down
4 changes: 2 additions & 2 deletions pyroomacoustics/directivities/measured.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@

import numpy as np
from scipy.interpolate import griddata
from scipy.spatial import cKDTree, SphericalVoronoi
from scipy.spatial import SphericalVoronoi, cKDTree

from .. import random
from ..acoustics import OctaveBandsFactory
from ..datasets import SOFADatabase
from ..doa import Grid, GridSphere, cart2spher, fibonacci_spherical_sampling, spher2cart
from ..directivities.integration import spherical_integral
from ..doa import Grid, GridSphere, cart2spher, fibonacci_spherical_sampling, spher2cart
from ..parameters import constants
from ..utilities import requires_matplotlib
from .base import Directivity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import numpy as np
import pyroomacoustics as pra

import pytest

import pyroomacoustics as pra


@pytest.mark.parametrize("p", (0.0, 0.25, 0.5, 0.75, 1.0))
def test_pdf_integral(p):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import numpy as np

import pyroomacoustics as pra


Expand Down
3 changes: 2 additions & 1 deletion pyroomacoustics/random/tests/test_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
Tests the distribution objects for the pdf area and the sampler functions.
"""

import pytest
import numpy as np
import pytest

import pyroomacoustics as pra
from pyroomacoustics.directivities.integration import spherical_integral

Expand Down
5 changes: 3 additions & 2 deletions pyroomacoustics/random/tests/test_rejection.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import pyroomacoustics as pra
import numpy as np
from pyroomacoustics.directivities import CardioidEnergyDistribution, SphericalHistogram
import pytest

import pyroomacoustics as pra
from pyroomacoustics.directivities import CardioidEnergyDistribution, SphericalHistogram


def test_rejection_sampler_power_spherical():

Expand Down

0 comments on commit fd8fd96

Please sign in to comment.