dsatools
Advanced tools
| Metadata-Version: 1.1 | ||
| Name: dsatools | ||
| Version: 0.1.86 | ||
| Version: 0.1.87 | ||
| Summary: The library with a most popular tools for Digital Signal Analysis (DSA) | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/MVRonkin/dsatools |
@@ -48,4 +48,4 @@ import numpy as _np | ||
| ''' | ||
| frequencies = __np.asarray(frequencies, dtype = float) | ||
| init_phases = __np.asarray(init_phases, dtype = float) | ||
| frequencies = _np.asarray(frequencies, dtype = float) | ||
| init_phases = _np.asarray(init_phases, dtype = float) | ||
@@ -64,3 +64,3 @@ if length is None: | ||
| return 2*__np.pi*__np.cumsum(frequencies)*dt+init_phases | ||
| return 2*_np.pi*_np.cumsum(frequencies)*dt+init_phases | ||
@@ -70,3 +70,3 @@ #------------------------------------- | ||
| array = __np.asarray(array, dtype = float) | ||
| array = _np.asarray(array, dtype = float) | ||
@@ -79,3 +79,3 @@ if size is None: | ||
| if array.size==1: | ||
| return __np.ones(size, dtype=float)*array | ||
| return _np.ones(size, dtype=float)*array | ||
| else: | ||
@@ -86,5 +86,5 @@ if array.size>=size: | ||
| else: | ||
| last = __np.ones(size-array.size, | ||
| last = _np.ones(size-array.size, | ||
| dtype=float)*array[-1] | ||
| return __np.concatenate((array,last)) | ||
| return _np.concatenate((array,last)) | ||
@@ -115,3 +115,3 @@ #------------------------------- | ||
| length = int(length) | ||
| t = __np.arange(length)/fs | ||
| t = _np.arange(length)/fs | ||
| return f0+delta_f*t/((length/fs)) | ||
@@ -143,5 +143,5 @@ #------------------------------- | ||
| length = int(length) | ||
| t = __np.arange(length)/(2*fs) | ||
| t = _np.arange(length)/(2*fs) | ||
| tm = length/fs/2 | ||
| return __np.concatenate((f0+delta_f*t/tm, | ||
| return _np.concatenate((f0+delta_f*t/tm, | ||
| f0+delta_f-delta_f*t/tm)) | ||
@@ -174,5 +174,5 @@ #------------------------------- | ||
| ''' | ||
| t = __np.arange(length)/fs | ||
| freq = __np.power(t,degree)/((length/fs)) | ||
| return f0+delta_f*freq/__np.max(freq) | ||
| t = _np.arange(length)/fs | ||
| freq = _np.power(t,degree)/((length/fs)) | ||
| return f0+delta_f*freq/_np.max(freq) | ||
| #------------------------------- | ||
@@ -201,5 +201,5 @@ def sin_frequency(f0, delta_f, length, fs): | ||
| ''' | ||
| t = __np.arange(length)/fs | ||
| t = _np.arange(length)/fs | ||
| tm = length/fs | ||
| return (f0+delta_f/2)+delta_f*__np.sin(2*__np.pi*t/tm)/2 | ||
| return (f0+delta_f/2)+delta_f*_np.sin(2*_np.pi*t/tm)/2 | ||
| #------------------------------- | ||
@@ -228,5 +228,5 @@ def sin_quart_frequency(f0, delta_f, length, fs): | ||
| ''' | ||
| t = __np.arange(length)/fs | ||
| t = _np.arange(length)/fs | ||
| tm = length/fs | ||
| return (f0)+delta_f*__np.sin((2*__np.pi*t/tm)/4) | ||
| return (f0)+delta_f*_np.sin((2*_np.pi*t/tm)/4) | ||
@@ -256,8 +256,8 @@ #------------------------------- | ||
| ''' | ||
| t = __np.arange(length)/fs | ||
| t = _np.arange(length)/fs | ||
| tm = length/fs | ||
| return (f0)+delta_f*__np.sin((2*__np.pi*t/tm)/2) | ||
| return (f0)+delta_f*_np.sin((2*_np.pi*t/tm)/2) | ||
| #------------------------------- | ||
| def sin_phase_frequency(f0, delta_f, length, fs, phi0=0, phiN=__np.pi/4): | ||
| def sin_phase_frequency(f0, delta_f, length, fs, phi0=0, phiN=_np.pi/4): | ||
| ''' | ||
@@ -284,6 +284,6 @@ Arbitarry sinus frequency to time relation. | ||
| ''' | ||
| t = __np.arange(length)/fs | ||
| t = _np.arange(length)/fs | ||
| tm = length/fs | ||
| divider = __np.pi/phiN | ||
| freqm = __np.sin(2*__np.pi*t/(tm*divider)+phi0) | ||
| divider = _np.pi/phiN | ||
| freqm = _np.sin(2*_np.pi*t/(tm*divider)+phi0) | ||
| return (f0)+delta_f*(freqm-min(freqm))/(max(freqm)-min(freqm)) | ||
@@ -315,3 +315,3 @@ | ||
| ''' | ||
| sig_beat = sig_ref*__np.conj(sig_delayed); | ||
| sig_beat = sig_ref*_np.conj(sig_delayed); | ||
| if reduced_ratio is not None: | ||
@@ -321,3 +321,3 @@ | ||
| sp = __np.fft.fft(sig_beat) | ||
| sp = _np.fft.fft(sig_beat) | ||
@@ -324,0 +324,0 @@ if hilbert is False: |
+1
-1
| Metadata-Version: 1.1 | ||
| Name: dsatools | ||
| Version: 0.1.86 | ||
| Version: 0.1.87 | ||
| Summary: The library with a most popular tools for Digital Signal Analysis (DSA) | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/MVRonkin/dsatools |
+1
-1
@@ -10,3 +10,3 @@ | ||
| packages=find_packages(), | ||
| version="0.1.86", | ||
| version="0.1.87", | ||
| description=""" The library with a most popular tools for Digital Signal Analysis (DSA) """, | ||
@@ -13,0 +13,0 @@ long_description=readme, |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
645752
0