def unset_color(self, atoms=None):
""" Resets atoms to their default colors
Args:
atoms (List[moldesign.Atom]): list of atoms to color (if None, this is applied to
all atoms)
"""
if atoms is None:
atoms = self.mol.atoms
for atom in atoms:
self.atom_colors.pop(atom, None)
self.styles[str(atom.index)].pop('color', None)
self.send_state('styles')
geometry_viewer.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录