Commit 68446fb4 by Anton Akhmerov Committed by Viacheslav Ostroukh

### linter error fixes

parent bd41cfd2
 ... @@ -326,8 +326,7 @@ class SpectralDensity: ... @@ -326,8 +326,7 @@ class SpectralDensity: if energy_resolution: if energy_resolution: if energy_resolution <= 0: if energy_resolution <= 0: raise ValueError("'energy_resolution' must be positive" raise ValueError("'energy_resolution' must be positive") .format(energy_resolution)) # factor of 1.6 comes from the fact that we use the # factor of 1.6 comes from the fact that we use the # Jackson kernel when calculating the FFT, which has # Jackson kernel when calculating the FFT, which has # maximal slope π/2. Rounding to 1.6 ensures that the # maximal slope π/2. Rounding to 1.6 ensures that the ... @@ -1097,7 +1096,7 @@ def jackson_kernel(moments): ... @@ -1097,7 +1096,7 @@ def jackson_kernel(moments): `_. `_. """ """ n_moments, *extra_shape = moments.shape n_moments = len(moments) m = np.arange(n_moments) m = np.arange(n_moments) kernel_array = ((n_moments - m + 1) * kernel_array = ((n_moments - m + 1) * np.cos(np.pi * m/(n_moments + 1)) + np.cos(np.pi * m/(n_moments + 1)) + ... @@ -1119,7 +1118,7 @@ def lorentz_kernel(moments, l=4): ... @@ -1119,7 +1118,7 @@ def lorentz_kernel(moments, l=4): The additional parameter ``l`` controls the decay of the kernel. The additional parameter ``l`` controls the decay of the kernel. """ """ n_moments, *extra_shape = moments.shape n_moments = len(moments) m = np.arange(n_moments) m = np.arange(n_moments) kernel_array = np.sinh(l * (1 - m / n_moments)) / np.sinh(l) kernel_array = np.sinh(l * (1 - m / n_moments)) / np.sinh(l) ... ...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!