Open sgbaird opened 2 years ago
Same issue with material_id
in mpr.provenance.search()
:
search() got an unexpected keyword argument 'material_id'
print(mpr.provenance.available_fields)
['builder_meta', 'nsites', 'elements', 'nelements', 'composition', 'composition_reduced', 'formula_pretty', 'formula_anonymous', 'chemsys', 'volume', 'density', 'density_atomic', 'symmetry', 'property_name', 'material_id', 'deprecated', 'deprecation_reasons', 'last_updated', 'origins', 'warnings', 'created_at', 'references', 'authors', 'remarks', 'tags', 'theoretical', 'database_IDs', 'history']
See my comment https://github.com/materialsproject/api/issues/613#issuecomment-1146383017 on available fields. Let me know if you feel I should change the documentation here to make it more clear (https://docs.materialsproject.org/downloading-data/using-the-api/querying-data).
Also, the mismatch between the search method input parameter and the data field is something we are going to address. This requires a larger change to our data schema, which is more involved. For now, I can update the documentation to explain this difference.
Maybe worth mentioning in the
v0.24.0
release or updatingmpr.summary.available_fields
(which still showsnsites
, no reference tonum_sites
), sincensites
produces an unexpected keyword error. Came across the error after updating fromv0.23.6
tov0.24.0
.https://github.com/materialsproject/api/compare/v0.23.6...v0.24.0