pqopen-lib 0.9.0__tar.gz → 0.9.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pqopen-lib
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: A power quality processing library for calculating parameters from waveform data
5
5
  Project-URL: Homepage, https://github.com/DaqOpen/pqopen-lib
6
6
  Project-URL: Issues, https://github.com/DaqOpen/pqopen-lib/issues
@@ -526,9 +526,8 @@ class PowerSystem(object):
526
526
  if phys_type == "hf_1khz_rms":
527
527
  u_values_windowed = u_values[:self._harm_fft_resample_size]*self._hf_1khz_window
528
528
  u_real_fft = np.fft.rfft(u_values_windowed)
529
- #u_real_fft = np.fft.rfft(u_values_windowed)
530
529
  if phase._u_fft_corr_array is not None:
531
- corr_freq_idx = np.linspace(0, self._samplerate*0.5, u_real_fft.shape[0]).astype(np.int32)
530
+ corr_freq_idx = np.linspace(0, phase._u_fft_corr_array.size, u_real_fft.shape[0], endpoint=False).astype(np.int32)
532
531
  u_real_fft *= phase._u_fft_corr_array[corr_freq_idx]
533
532
  u_Pxx = (np.abs(u_real_fft) ** 2) / np.sum(self._hf_1khz_window ** 2)
534
533
  u_Pxx /= self._harm_fft_resample_size * 0.5
@@ -12,7 +12,7 @@ packages = ["pqopen"]
12
12
 
13
13
  [project]
14
14
  name = "pqopen-lib"
15
- version = "0.9.0"
15
+ version = "0.9.1"
16
16
  dependencies = [
17
17
  "numpy",
18
18
  "daqopen-lib >= 0.7.4",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes