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 }}
Repository navigation
[Bug]: Inconsistency between mpr.materials.piezoelectric.search() and mpr.materials.elasticity.search() #988
Calling mpr.materials.elasticity.search() returns a list of documents where each entry has a structure component, while mpr.materials.piezoelectric.search() does not.
The rest of the data in ElasticityDoc and PiezoelectricDoc are pretty much in line, but not structure. This is really annoying when querying piezo tensors.
Thanks for bringing this up @fxcoudert, after looking a bit this is an issue on the data side, not the api client. structure is not a field included in the document model for the PiezoelectricDoc defined in emmet. I can update emmet and draft a new data release.
In the mean time your best bet is to retrieve the structures and piezoelectric properties separately, which I assume is what you've been doing.
Activity
tsmathis commentedon Jun 20, 2025
Thanks for bringing this up @fxcoudert, after looking a bit this is an issue on the data side, not the api client.
structureis not a field included in the document model for thePiezoelectricDocdefined in emmet. I can update emmet and draft a new data release.In the mean time your best bet is to retrieve the structures and piezoelectric properties separately, which I assume is what you've been doing.