From 200e875964b4f44d8d1885348b84e4712e71332b Mon Sep 17 00:00:00 2001 From: Robin Scheibler Date: Tue, 28 May 2024 15:11:25 +0900 Subject: [PATCH] lint --- examples/directivities/circular_mic_array.py | 5 +---- examples/directivities/mic_array.py | 5 +---- examples/directivities/mic_array_diff_directivities.py | 6 +----- examples/directivities/plot_directivity_2D.py | 6 +++--- examples/directivities/plot_directivity_3D.py | 5 +---- pyroomacoustics/utilities.py | 2 +- 6 files changed, 8 insertions(+), 21 deletions(-) diff --git a/examples/directivities/circular_mic_array.py b/examples/directivities/circular_mic_array.py index b665d727..aac53637 100644 --- a/examples/directivities/circular_mic_array.py +++ b/examples/directivities/circular_mic_array.py @@ -1,10 +1,7 @@ import matplotlib.pyplot as plt import pyroomacoustics as pra -from pyroomacoustics.directivities import ( - Cardioid, - DirectionVector, -) +from pyroomacoustics.directivities import Cardioid, DirectionVector three_dim = True # 2D or 3D diff --git a/examples/directivities/mic_array.py b/examples/directivities/mic_array.py index f189a043..bfbc782b 100644 --- a/examples/directivities/mic_array.py +++ b/examples/directivities/mic_array.py @@ -2,10 +2,7 @@ import numpy as np import pyroomacoustics as pra -from pyroomacoustics.directivities import ( - HyperCardioid, - DirectionVector, -) +from pyroomacoustics.directivities import DirectionVector, HyperCardioid orientation = DirectionVector(azimuth=0, colatitude=0, degrees=True) diff --git a/examples/directivities/mic_array_diff_directivities.py b/examples/directivities/mic_array_diff_directivities.py index c0e08462..953a64a4 100644 --- a/examples/directivities/mic_array_diff_directivities.py +++ b/examples/directivities/mic_array_diff_directivities.py @@ -2,11 +2,7 @@ import numpy as np import pyroomacoustics as pra -from pyroomacoustics.directivities import ( - Cardioid, - HyperCardioid, - DirectionVector, -) +from pyroomacoustics.directivities import Cardioid, DirectionVector, HyperCardioid dir_1 = Cardioid( orientation=DirectionVector(azimuth=180, colatitude=30, degrees=True), diff --git a/examples/directivities/plot_directivity_2D.py b/examples/directivities/plot_directivity_2D.py index f86f852c..6d6e6840 100644 --- a/examples/directivities/plot_directivity_2D.py +++ b/examples/directivities/plot_directivity_2D.py @@ -4,11 +4,11 @@ from pyroomacoustics import dB from pyroomacoustics.directivities import ( Cardioid, - HyperCardioid, - SubCardioid, + DirectionVector, FigureEight, + HyperCardioid, Omnidirectional, - DirectionVector, + SubCardioid, ) orientation = DirectionVector(azimuth=0, colatitude=90, degrees=True) diff --git a/examples/directivities/plot_directivity_3D.py b/examples/directivities/plot_directivity_3D.py index 81d3805d..5086222a 100644 --- a/examples/directivities/plot_directivity_3D.py +++ b/examples/directivities/plot_directivity_3D.py @@ -1,10 +1,7 @@ import matplotlib.pyplot as plt import numpy as np -from pyroomacoustics.directivities import ( - HyperCardioid, - DirectionVector, -) +from pyroomacoustics.directivities import DirectionVector, HyperCardioid orientation = DirectionVector(azimuth=0, colatitude=45, degrees=True) diff --git a/pyroomacoustics/utilities.py b/pyroomacoustics/utilities.py index 320bad6d..cd5cc3d9 100644 --- a/pyroomacoustics/utilities.py +++ b/pyroomacoustics/utilities.py @@ -23,8 +23,8 @@ # not, see . from __future__ import division -import itertools import functools +import itertools import numpy as np import soxr