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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pqopen-lib
3
- Version: 0.7.0
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:
@@ -12,7 +12,7 @@ packages = ["pqopen"]
12
12
 
13
13
  [project]
14
14
  name = "pqopen-lib"
15
- version = "0.7.0"
15
+ version = "0.7.2"
16
16
  dependencies = [
17
17
  "numpy",
18
18
  "daqopen-lib",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes