Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit 947c8e7

Browse files
committed
Updated aggregateList example in readme and quickstart. Also changed indexation in query_api.py to avoid an index error occuring when using the client as suggested in documentation.
1 parent df87f7f commit 947c8e7

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

TSIClient/query/query_api.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -669,11 +669,6 @@ def _getData(
669669
if isinstance(aggregateList, list):
670670
for idx, agg in enumerate(aggregateList):
671671
currColName = colNames[i] + "/" + agg
672-
# print(len(response['properties']))
673-
# print(type(response['properties']))
674-
675-
# print(type(response['properties'][0]))
676-
677672
df[currColName] = response["properties"][0]["values"]
678673
else:
679674
df[colNames[i]] = response["properties"][0]["values"]

docs/source/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ is convenient for further statistical analysis.
167167
... timeseries=["timeseries_id1", "timeseries_id2"],
168168
... timespan=["2020-01-25T10:00:11.68Z", "2020-01-26T13:45:11.68Z"],
169169
... interval="PT5M",
170-
... aggregateList=["avg"],
170+
... aggregateList=["avg", "avg"],
171171
... useWarmStore=False
172172
... )
173173
>>> data

0 commit comments

Comments
 (0)