Small improvements. Legend position forwarded.

This commit is contained in:
Anne de Jong 2018-10-01 14:22:15 +02:00 committed by J.A. de Jong - ASCEE
parent 9806ba36ff
commit 95f297dd46
3 changed files with 12 additions and 3 deletions

View File

@ -1,3 +0,0 @@
from .wrappers import *
from .lasp_tools import *
from .lasp_common import *

View File

@ -0,0 +1,4 @@
from .freqweighting_fir import A, C
__all__ = ['A', 'Z']

View File

@ -84,6 +84,14 @@ class FilterBankDesigner:
return frsp(fd, freq, fir)
def nominal_txt_tox(self, nom_txt):
"""
Returns the x-value corresponding to a certain nominal txt: '1k' -> 0
"""
for x in self.xs:
if self.nominal_txt(x) == nom_txt:
return x
raise ValueError(f'Could not find an x-value corresponding to {nom_txt}.')
class OctaveBankDesigner(FilterBankDesigner):
"""