Skip to content

Commit 373cd9a

Browse files
make PotcarSummaryStats subscriptable
1 parent 941e9d6 commit 373cd9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

emmet-core/emmet/core/vasp/calculation.py

+4
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ class PotcarSummaryStats(BaseModel):
9898
),
9999
)
100100

101+
def __getitem__(self, name: str) -> Any:
102+
"""Make attributes subscriptable."""
103+
return getattr(self, name)
104+
101105

102106
class PotcarSpec(BaseModel):
103107
"""Document defining a VASP POTCAR specification."""

0 commit comments

Comments
 (0)