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

Composite time series IDs #87

Open
betsalel-williamson opened this issue Feb 21, 2022 · 1 comment
Open

Composite time series IDs #87

betsalel-williamson opened this issue Feb 21, 2022 · 1 comment

Comments

@betsalel-williamson
Copy link

betsalel-williamson commented Feb 21, 2022

When a time series ID is a composite key, there is a type error: TypeError: unhashable type: 'list'

E.g.:

    data = client.query.getDataById(
        timeseries=[
            ["part-a",
             "part-b",
             "part-c"]
        ],
        timespan=["2022-02-21T00:00:00.00Z", "2022-02-21T12:00:00.00Z"],
        interval="PT5M",
        aggregateList=["first"],
        useWarmStore=False
    )

getTypeById expects that ID is a string. It may be a list.

for ID in ids:
if ID in idMap:
typeIds.append(idMap[ID]['typeId'])
else:
typeIds.append(None)

@federel
Copy link

federel commented Mar 28, 2022

Do you know how to fix that please ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants