Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix database_IDs field in summary #545

Merged
merged 1 commit into from
Sep 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions emmet-core/emmet/core/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from emmet.core.mpid import MPID
from emmet.core.thermo import DecompositionProduct
from emmet.core.xas import Edge, Type
from emmet.core.elasticity import BulkModulus, ShearModulus
from emmet.core.provenance import Database

T = TypeVar("T", bound="SummaryDoc")

Expand Down Expand Up @@ -406,8 +406,8 @@ class SummaryDoc(PropertyDoc):

# External Database IDs

database_IDs: bool = Field(
None, description="External database IDs for this material.", source="provenance"
database_IDs: Dict[Database, List[str]] = Field(
{}, description="External database IDs corresponding to this material."
)

@classmethod
Expand Down