Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fakufaku committed May 27, 2024
1 parent d8d79ea commit d392bb6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion examples/simulate_binaural_recording.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
interp_order=args.interp_order,
interp_n_points=args.interp_n_points,
)

orientation = Rotation3D([colatitude_deg, azimuth_deg], "yz", degrees=True)
dir_left = hrtf.get_mic_directivity("left", orientation=orientation)
dir_right = hrtf.get_mic_directivity("right", orientation=orientation)
Expand Down
2 changes: 1 addition & 1 deletion examples/simulation_with_measured_directivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class DirectionVector
import pyroomacoustics as pra
from pyroomacoustics.directivities import (
Cardioid,
FigureEight,
DirectionVector,
FigureEight,
MeasuredDirectivityFile,
Rotation3D,
)
Expand Down
2 changes: 1 addition & 1 deletion pyroomacoustics/beamforming.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from . import transform
from . import utilities as u
from . import windows
from .directivities import Omnidirectional, DirectionVector, Directivity
from .directivities import DirectionVector, Directivity, Omnidirectional
from .parameters import constants
from .soundsource import build_rir_matrix

Expand Down
6 changes: 3 additions & 3 deletions pyroomacoustics/directivities/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@
"""
from .analytic import (
CardioidFamily,
Cardioid,
SubCardioid,
HyperCardioid,
CardioidFamily,
FigureEight,
HyperCardioid,
Omnidirectional,
SubCardioid,
cardioid_func,
)
from .base import Directivity
Expand Down
1 change: 0 additions & 1 deletion pyroomacoustics/directivities/analytic.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
from .base import Directivity
from .direction import DirectionVector


_FIGURE_EIGHT = 0
_HYPERCARDIOID = 0.25
_CARDIOID = 0.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
)
from pyroomacoustics.directivities import (
CardioidFamily,
Rotation3D,
DirectionVector,
FigureEight,
MeasuredDirectivityFile,
Rotation3D,
)
from pyroomacoustics.directivities.interp import (
calculation_pinv_voronoi_cells,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np

import pyroomacoustics as pra
from pyroomacoustics.directivities import FigureEight, DirectionVector
from pyroomacoustics.directivities import DirectionVector, FigureEight

# create room
room = pra.ShoeBox(
Expand Down

0 comments on commit d392bb6

Please sign in to comment.