Skip to content

Commit e8d0f59

Browse files
committed
editor.meta now transfers to universe.meta appropriately
1 parent c52b282 commit e8d0f59

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

exatomic/editor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ def to_universe(self, name=None, description=None, meta=None):
3535
"""
3636
Convert the editor to a :class:`~exatomic.container.Universe` object.
3737
"""
38+
if self.meta is not None:
39+
if meta is not None:
40+
meta.update(self.meta)
41+
else:
42+
meta = self.meta
3843
kwargs = {'name': name, 'description': description, 'meta': meta}
3944
attrs = [attr.replace('parse_', '') for attr in vars(self.__class__).keys() if attr.startswith('parse_')]
4045
for attr in attrs:

0 commit comments

Comments
 (0)