Skip to content

Commit 28dd2fe

Browse files
committed
adding the get_value method
1 parent ed9f08a commit 28dd2fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/aiida_atomistic/data/structure/structure.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,9 @@ def from_builder(cls, builder: 'StructureBuilder'):
413413
def to_builder(self) -> 'StructureBuilder':
414414
"""Convert to a mutable StructureBuilder."""
415415
return StructureBuilder(**self.to_dict())
416+
417+
def get_value(self) -> 'StructureBuilder':
418+
return self.to_builder()
416419

417420
def __repr__(self) -> str:
418421
"""Return a concise string representation of the structure."""

0 commit comments

Comments
 (0)