Some bugfixes

This commit is contained in:
Anne de Jong 2022-11-14 11:11:03 +01:00
parent f4c4a883c6
commit ab07acd60c
3 changed files with 4 additions and 2 deletions

View File

@ -73,12 +73,12 @@ class Qty:
return f'{self.name} [{self.unit_symb}]' return f'{self.name} [{self.unit_symb}]'
def __eq__(self, other): def __eq__(self, other):
# logging.debug('eq()')
""" """
Comparison breaks for the other objects, level unit, level ref name, Comparison breaks for the other objects, level unit, level ref name,
etc as these are tuples / a single string. etc as these are tuples / a single string.
""" """
# logging.debug(f'eq() {self.name} {other.name}')
return (self.name == other.name and return (self.name == other.name and
self.unit_name == other.unit_name) self.unit_name == other.unit_name)

View File

@ -493,7 +493,7 @@ class Measurement:
for data in self.iterData(channels, **kwargs): for data in self.iterData(channels, **kwargs):
CS = aps.compute(data) CS = aps.compute(data)
return freq, CS return freq, aps.get_est()
def periodicAverage(self, N, channels=None, noiseCorrection=True, **kwargs): def periodicAverage(self, N, channels=None, noiseCorrection=True, **kwargs):
""" """

View File

@ -266,6 +266,8 @@ class SosFilterBank:
return {} return {}
filtered_data = self._fb.filter(data) filtered_data = self._fb.filter(data)
if filtered_data.ndim == 1:
filtered_data = filtered_data[:, None]
# Output given as a dictionary with nom_txt as the key # Output given as a dictionary with nom_txt as the key
output = {} output = {}