镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[Bug]: Inconsistency between mpr.materials.piezoelectric.search() and mpr.materials.elasticity.search() #988

Open

Description

@fxcoudert

Code snippet

What happened?

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.

Version

0.45.7

Which OS?

  • MacOS
  • Windows
  • Linux

Log output

Activity

  1. tsmathis commented on Jun 20, 2025

    @tsmathis
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions