pqopen-lib 0.8.2__tar.gz → 0.8.3__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.
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/PKG-INFO +1 -1
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/pqopen/powersystem.py +4 -3
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/pyproject.toml +1 -1
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/.gitignore +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/LICENSE +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/README.md +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/pqopen/__init__.py +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/pqopen/auxcalc.py +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/pqopen/eventdetector.py +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/pqopen/helper.py +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/pqopen/powerquality.py +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/pqopen/storagecontroller.py +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/pqopen/zcd.py +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/test/data_files/event_data_level_low.csv +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/test/eventdetector-test.py +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/test/goertzel-test.py +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/test/helper-test.py +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/test/powerquality-test.py +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/test/powersystem-test.py +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/test/storagecontroller-test.py +0 -0
- {pqopen_lib-0.8.2 → pqopen_lib-0.8.3}/test/zcd-test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pqopen-lib
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.3
|
|
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
|
|
@@ -305,11 +305,11 @@ class PowerSystem(object):
|
|
|
305
305
|
if self._features["harmonics"]:
|
|
306
306
|
for phase in self._phases:
|
|
307
307
|
if phase._u_channel.freq_response:
|
|
308
|
-
phase._u_fft_corr_array = create_fft_corr_array(self._harm_fft_resample_size
|
|
308
|
+
phase._u_fft_corr_array = create_fft_corr_array(self._harm_fft_resample_size,
|
|
309
309
|
self._samplerate/2,
|
|
310
310
|
phase._u_channel.freq_response)
|
|
311
311
|
if phase._i_channel is not None and phase._i_channel.freq_response:
|
|
312
|
-
phase._i_fft_corr_array = create_fft_corr_array(self._harm_fft_resample_size
|
|
312
|
+
phase._i_fft_corr_array = create_fft_corr_array(self._harm_fft_resample_size,
|
|
313
313
|
self._samplerate/2,
|
|
314
314
|
phase._i_channel.freq_response)
|
|
315
315
|
|
|
@@ -481,7 +481,8 @@ class PowerSystem(object):
|
|
|
481
481
|
if self._features["harmonics"]:
|
|
482
482
|
data_fft_U = pq.resample_and_fft(u_values, self._harm_fft_resample_size)
|
|
483
483
|
if phase._u_fft_corr_array is not None:
|
|
484
|
-
|
|
484
|
+
resample_factor = min(self._harm_fft_resample_size / u_values.size, 1)
|
|
485
|
+
data_fft_U *= phase._u_fft_corr_array[np.linspace(0, self._harm_fft_resample_size*resample_factor, self._harm_fft_resample_size//2+1).astype(np.int32)]
|
|
485
486
|
u_h_mag, u_h_phi = pq.calc_harmonics(data_fft_U, self.nper, self._features["harmonics"])
|
|
486
487
|
u_ih_mag = pq.calc_interharmonics(data_fft_U, self.nper, self._features["harmonics"])
|
|
487
488
|
if phase._number == 1: # use phase 1 angle as reference
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|