Skip to content

Commit e4d7242

Browse files
committed
Fixed error
1 parent 0091be1 commit e4d7242

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = edge-ml
3-
version = 0.3.2
3+
version = 0.3.3
44
author = KIT/TECO
55
autor_email = [email protected]
66
description = Python library of edge-ml.org: end-to-end machine learning for embedded devices

src/edgeml/edgeml.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,11 @@ async def _addDataPoint_OwnTimeStamps(self, timestamp, name, value):
103103

104104
if not isinstance(timestamp, (int)):
105105
raise ValueError("Provide a valid timestamp")
106-
107106
self.dataStore[name].append([timestamp, value])
108107

109108
if time.time() * 1000 - self.lastChecked > UPLOAD_INTERVAL:
110109
self.upload(self.labeling)
111110
self.lastChecked = time.time() * 1000
112-
self.dataStore = {"data": []}
113111

114112

115113
async def upload(self, uploadLabel):
@@ -121,7 +119,7 @@ async def upload(self, uploadLabel):
121119
+ self.apiKey
122120
+ "/"
123121
+ self.datasetKey,
124-
json={"data": tmp_dataStore, "labeling": uploadLabel},
122+
json={"data": tmp_dataStore, "labeling": None},
125123
)
126124
self.dataStore = {x: [] for x in self.timeSeries}
127125
if response.status_code != 200:

0 commit comments

Comments
 (0)