added a string representation for data type FilterOptions
This commit is contained in:
parent
c3e072e952
commit
4f440d282d
@ -134,9 +134,9 @@ class AutoPickParameter(object):
|
|||||||
|
|
||||||
class FilterOptions(object):
|
class FilterOptions(object):
|
||||||
'''
|
'''
|
||||||
FilterOptions is a parameter object type providing Butterworth filter option
|
FilterOptions is a parameter object type providing Butterworth filter
|
||||||
parameter for PyLoT. Its easy to access properties helps to manage file
|
option parameter for PyLoT. Its easy to access properties helps to manage
|
||||||
based as well as parameter manipulation within the GUI.
|
file based as well as parameter manipulation within the GUI.
|
||||||
|
|
||||||
:type filtertype: str, optional
|
:type filtertype: str, optional
|
||||||
:param filtertype: String containing the desired filtertype For information
|
:param filtertype: String containing the desired filtertype For information
|
||||||
@ -170,6 +170,16 @@ class FilterOptions(object):
|
|||||||
self._setFreq(freq)
|
self._setFreq(freq)
|
||||||
self._setOrder(order)
|
self._setOrder(order)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
hrs = '''\n\tFilter parameter:\n
|
||||||
|
Type:\t\t{ftype}\n
|
||||||
|
Frequencies:\t{freq}\n
|
||||||
|
Order:\t\t{order}\n
|
||||||
|
'''.format(ftype=self.filterType,
|
||||||
|
freq=self.freq,
|
||||||
|
order=self.order)
|
||||||
|
return hrs
|
||||||
|
|
||||||
def _getFreq(self):
|
def _getFreq(self):
|
||||||
return self.__filterInformation['freq']
|
return self.__filterInformation['freq']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user