pqopen-lib 0.7.0__tar.gz → 0.7.2__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.7.0 → pqopen_lib-0.7.2}/PKG-INFO +1 -1
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/pqopen/eventdetector.py +3 -3
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/pqopen/powersystem.py +1 -1
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/pyproject.toml +1 -1
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/.gitignore +0 -0
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/LICENSE +0 -0
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/README.md +0 -0
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/pqopen/__init__.py +0 -0
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/pqopen/helper.py +0 -0
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/pqopen/powerquality.py +0 -0
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/pqopen/storagecontroller.py +0 -0
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/pqopen/zcd.py +0 -0
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/test/data_files/event_data_level_low.csv +0 -0
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/test/eventdetector-test.py +0 -0
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/test/helper-test.py +0 -0
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/test/powerquality-test.py +0 -0
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/test/powersystem-test.py +0 -0
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/test/storagecontroller-test.py +0 -0
- {pqopen_lib-0.7.0 → pqopen_lib-0.7.2}/test/zcd-test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pqopen-lib
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.2
|
|
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
|
|
@@ -248,11 +248,11 @@ class EventController(object):
|
|
|
248
248
|
del self._unfinished_events[event["id"]]
|
|
249
249
|
else:
|
|
250
250
|
stop_ts = None
|
|
251
|
-
single_event = Event(start_ts=start_ts,
|
|
252
|
-
stop_ts=stop_ts if stop_ts else None,
|
|
251
|
+
single_event = Event(start_ts=float(start_ts),
|
|
252
|
+
stop_ts=float(stop_ts) if stop_ts else None,
|
|
253
253
|
start_sidx=event["start_sidx"],
|
|
254
254
|
stop_sidx=event["stop_sidx"],
|
|
255
|
-
extrem_value=event["extrem_value"],
|
|
255
|
+
extrem_value=float(event["extrem_value"]),
|
|
256
256
|
channel=event_detector.observed_channel.name,
|
|
257
257
|
type=event_detector._type,
|
|
258
258
|
id=event["id"])
|
|
@@ -233,6 +233,7 @@ class PowerSystem(object):
|
|
|
233
233
|
self._next_round_ts = floor_timestamp(last_zc_ts, self._resync_interval_sec, ts_resolution="us")+self._resync_interval_sec*1_000_000
|
|
234
234
|
|
|
235
235
|
def _update_calc_channels(self):
|
|
236
|
+
self._channel_update_needed = False
|
|
236
237
|
self.output_channels = {}
|
|
237
238
|
for phase in self._phases:
|
|
238
239
|
phase.update_calc_channels(self._features)
|
|
@@ -291,7 +292,6 @@ class PowerSystem(object):
|
|
|
291
292
|
# Initially Update Calc Channels
|
|
292
293
|
if self._channel_update_needed:
|
|
293
294
|
self._update_calc_channels()
|
|
294
|
-
self._channel_update_needed = False
|
|
295
295
|
|
|
296
296
|
# Process new samples in buffer
|
|
297
297
|
if not self._phases:
|
|
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
|