From afcbbe4e690872d1748bc6032ce517add92912dd Mon Sep 17 00:00:00 2001 From: dingbo Date: Thu, 14 Jul 2022 16:19:07 +0800 Subject: [PATCH] docs: mockdatasoruce.py --- docs/examples/python/mockdatasoruce.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/docs/examples/python/mockdatasoruce.py b/docs/examples/python/mockdatasoruce.py index 85c6df6cb9..6172fda7b3 100644 --- a/docs/examples/python/mockdatasoruce.py +++ b/docs/examples/python/mockdatasoruce.py @@ -35,7 +35,6 @@ class MockDataSource: next 1000 rows for each table. return: {tableId:[row,...]} """ -<<<<<<< HEAD # generate 1000 timestamps ts = [] for _ in range(1000): @@ -48,14 +47,6 @@ class MockDataSource: rows = [table_name + ',' + t + ',' + values for t in ts] result.append((table_id, rows)) return result -======= - self.row += 1 - ts = self.start_ms + 100 * self.row - - # just add timestamp to each row - # (tableId, "tableName,ts,current,voltage,phase,location,groupId") - return map(lambda t: (t[0], t[1] + ',' + str(ts) + "," + t[2]), self.data) ->>>>>>> 8687dee8fddc27d6d10f009b0d2a12140e47de95 if __name__ == '__main__': -- GitLab