You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2026. It is now read-only.
When return DatasetSearchHits using the SearchClient, the attribute num_pifs is not working properly. Instead of giving the number of PIFs in a dataset (intended), it appears to give None, always. Below is code that should reproduce the issue.
importosfromcitrination_clientimport*sc=CitrinationClient(os.environ['CITRINATION_API_KEY'], 'https://citrination.com').searchquery=DatasetReturningQuery(
size=100,
query=DataQuery(
system=PifSystemQuery(
chemical_formula=ChemicalFieldQuery(
filter=ChemicalFilter(
equal='As2S3')))))
res=sc.dataset_search(query)
print("The first dataset has {} PIFs.".format(res.hits[0].num_pifs))