In [1]:
import exatomic
exatomic.__version__
Out[1]:
In [2]:
exatomic.Universe?
In [3]:
uni = exatomic.Universe()
uni
Out[3]:
In [4]:
atom = exatomic.Atom.from_dict({'x': [0.0, 0.0], 'y': [0.0, 0.0], 'z': [-0.34, 0.34],
'symbol': ["H", "H"], 'frame': [0, 0]})
uni = exatomic.Universe(atom=atom)
uni.atom
Out[4]:
In [5]:
uni.frame # This was computed on-the-fly as we didn't instantiate it above
Out[5]:
In [6]:
exatomic.UniverseWidget(uni)
In [7]:
uni.atom_two
Out[7]:
In [8]:
uni.molecule
Out[8]:
In [9]:
uni.compute_molecule_com()
In [10]:
uni.molecule
Out[10]:
In [ ]:
In [ ]: