Function used to calculate pore size of small MoS2 pore:
1. Pérez M.D.B., Nicolaï A., Delarue P., Meunier V., Drndić M., Senet P. (2019). Improved model of ionic transport in 2-D MoS 2 membranes with sub-5 nm pores. Appl. Phys. Lett. 114, 023107.
Maximum decomposition level for the wavelet transform.
Returns
-------
dict
Dictionary output of the filtered data with in keys:
'data' : a list of the current signal filtered
"""
#choose a wavelet basis - Here bio-orthogonal
wavelet=pywt.Wavelet('bior1.5')
N=len(data)
#choose a maximum decomposition level -> function parameter
#compute the wavelet transform for the signal x[n] to obtain detail coefficients wj,k (cD) and approximation coefficients aJ,k (cA) where j=1, ..., J and k = 1, ..., N
coeffs=pywt.swt(data,wavelet,level=decompositionLevel)#multilevel reconstruction in the paper they used 5, 7 and 8 levels