Beispiel #1
0
 def __init__(self):
     Filter.__init__(self)
     self.size = 11
     self.order = 5
     self.deriv = 0
     self.rate = 1
     self.config = ["size","order"]
Beispiel #2
0
 def __init__(self):
     Filter.__init__(self)
     self.window_list = ["Boxcar","Bartlett","Blackman","Hamming","Hanning","Blackman-Harris","Lanczos","Custom..."]
     self.custom = 'np.exp(-4*x**2)'
     self.type = 0
     self.is_pre_filter = True
     self.config = ["custom","type"]
Beispiel #3
0
 def __init__(self):
     Filter.__init__(self)
     self.ref = None
     self.source = None
     self.arrays = []
     self.is_reference = True
     self.imethod = 1
     self.methods = ["nearest","linear","quadratic","cubic"]
     self.config = ["imethod"]
     pub.subscribe(self.set_arrays, "history.arrays")
Beispiel #4
0
 def __init__(self):
     Filter.__init__(self)
     self.window_list = ["Boxcar", "Triangular", "Blackman", "Hamming", "Hann", "Bartlett", "Flat top", "Parzen", "Bohman", "Blackman-Harris", "Nuttall", "Bartlett-Hann"]
     self.window_code = ["boxcar", "triang", "blackman", "hamming", "hann", "bartlett", "flattop", "parzen", "bohman", "blackmanharris", "nuttall", "barthann"]
     self.type = 0
     self.length = 20.0
     self.overlap = 50.0
     self.scaling = 0
     self.is_transform = True
     self.config = ["type","length","overlap","scaling"]
Beispiel #5
0
 def __init__(self):
     Filter.__init__(self)
     self.window = ApodizationWindow()
     self.window_list = self.window.window_list
     self.custom = 'np.exp(-4*x**2)'
     self.type = 0
     self.size = 11.0
     self.relative = True
     self.position = 25.0
     self.is_pre_filter = True
     self.config = ["custom","type","size","relative","position"]
Beispiel #6
0
 def __init__(self):
     Filter.__init__(self)
     self.wl_filter_list = []
     self.wl_filter_code = []
     self.threshold = 0.1
     self.auto_threshold = True
     for x in pywt.wavelist():
         p = pywt.Wavelet(x)
         self.wl_filter_list.append(p.family_name + " " + str(p.number))
         self.wl_filter_code.append(p.name)
     self.type = 'bior6.8'
     self.thresholding = 0
     self.config = ["threshold","auto_threshold","type","thresholding"]
Beispiel #7
0
 def __init__(self):
     """
         Initialization.
     """
     Filter.__init__(self)
     # Insert here what should be done when the filter instance is created
     # This will be executed only once
     self.is_pre_filter = False # set to True if this filter can be applied before a transform (e.g. windowing)
     self.is_transform = False # set to True if this filter is a transform (Fourier or something else)
     self.is_reference = False # set to True if this filter sets a reference
     self.is_active = True # set to True if this filter is active
     self.is_visible = True # set to True if this filter is visible in the menu
     self.config = ['is_visible'] # list of variables to be saved in external config file
Beispiel #8
0
 def __init__(self):
     Filter.__init__(self)
     self.ref = None
     self.source = None
     self.arrays = []
     self.is_reference = True
     #self.is_visible = False
     self.thickness = 3000.0
     self.deviation = 2.0
     self.imethod = 1
     self.methods = ["nearest","linear","quadratic","cubic"]
     self.imaginary = False
     self.host = 1.0 # index of surrounding medium
     self.config = ["thickness","deviation","host","imaginary","imethod"]
     pub.subscribe(self.set_arrays, "history.arrays")
Beispiel #9
0
 def __init__(self):
     Filter.__init__(self)
     self.factor = 1.0
     self.config = ["factor"]
Beispiel #10
0
 def __init__(self):
     Filter.__init__(self)
Beispiel #11
0
 def __init__(self):
     Filter.__init__(self)
     self.power = 2.0
     self.config = ["power"]
Beispiel #12
0
 def __init__(self):
     Filter.__init__(self)
     self.position = 3.0
     self.width = 0.1
     self.config = ["position","width"]
Beispiel #13
0
 def __init__(self):
     Filter.__init__(self)
     self.imethod = 1
     self.methods = ["nearest","linear","quadratic","cubic"]
     self.config = ["imethod"]
Beispiel #14
0
 def __init__(self):
     Filter.__init__(self)
     self.is_visible = True
     self.nf = 100
     self.config = ["nf"]
Beispiel #15
0
 def __init__(self):
     Filter.__init__(self)
     self.is_transform = True
     self.output_names = ["Complex (full spectrum)","Amplitude","Phase","Real","Imaginary"]
     self.output_qty = 1 # by default, return amplitude
     self.config = ["output_qty"]
Beispiel #16
0
 def __init__(self):
     Filter.__init__(self)
     self.threshold = 1.0 # unwrap threshold (in units of pi)
     self.config = ["threshold"]
Beispiel #17
0
 def __init__(self):
     Filter.__init__(self)
     self.is_transform = True