Skip to content

Commit 93b8d61

Browse files
committed
fix lint errors
1 parent cc0c083 commit 93b8d61

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

sigpro/aggregations/frequency/band.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
def band_mean(amplitude_values, frequency_values, min_frequency, max_frequency):
7-
87
"""Compute the mean values for a specific band.
98
109
Filter between a high and low band and compute the mean value for this specific band.
@@ -23,7 +22,7 @@ def band_mean(amplitude_values, frequency_values, min_frequency, max_frequency):
2322
float:
2423
Mean value for the given band.
2524
"""
26-
25+
2726
lower_frequency_than = frequency_values <= max_frequency
2827
higher_frequency_than = frequency_values >= min_frequency
2928
selected_idx = np.where(higher_frequency_than & lower_frequency_than)
@@ -32,9 +31,7 @@ def band_mean(amplitude_values, frequency_values, min_frequency, max_frequency):
3231
return np.mean(selected_values)
3332

3433

35-
3634
def band_rms(amplitude_values, frequency_values, min_frequency, max_frequency):
37-
3835
"""Compute the rms values for a specific band.
3936
4037
Filter between a high and low band (inclusive) and compute the rms value for this
@@ -65,4 +62,3 @@ def band_rms(amplitude_values, frequency_values, min_frequency, max_frequency):
6562
selected_values = np.array(amplitude_values)[selected_idx]
6663

6764
return np.sqrt(np.mean(np.square(selected_values)))
68-

sigpro/basic_primitives.py

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def __init__(self, min_frequency, max_frequency):
178178
self.set_fixed_hyperparameters({'min_frequency': {'type': 'float'},
179179
'max_frequency': {'type': 'float'}})
180180

181+
181182
class BandRMS(primitive.FrequencyAggregation):
182183
"""
183184
BandMean primitive class.

0 commit comments

Comments
 (0)