Skip to content

Outdated examples in docs

Eg. the example for retieveing a list of components https://itkdb.docs.cern.ch/v0.6/examples/#retrieving-a-list-of-components uses an outdated schema. Does not work. With new schema, it should read:

import itkdb

client = itkdb.Client()

data = {"filterMap":{"project": "P"}, "pageInfo": {"pageSize": 32}}  
components_pixels = client.get("listComponents", json=data)  

print(components_pixels.total)  

for component in components_pixels:  
    print(component["code"])