Skip to content
Snippets Groups Projects
Commit 5a31031c authored by David Hoese's avatar David Hoese
Browse files

Merge branch 'bugfix-frame-creation' into 'master'

Fix influxdb frame creation modifying the original frame

See merge request metobs/MetObsCommon!4
parents 7355451c 529e3591
Branches
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ class LDMPReceiver(object):
if not self._started:
return
self._run_event.clear()
self.worker.join()
self._worker.join()
self._started = False
LOG.info("Background thread successfully terminated")
......
......
......@@ -64,6 +64,7 @@ def frame_records(frames,
nanos = _mktime(frame, timestamp=timestamp)
if wind_speed in frame and wind_dir in frame:
frame = frame.copy() # don't alter the original
spd = frame.get(wind_speed)
dr = frame.pop(wind_dir)
e, n, _ = wind_vector_components(spd, dr)
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment