opencadd.structure.core.Structure.from_atomgroup

classmethod Structure.from_atomgroup(*args)[source]

Create a new new Structure from one or more AtomGroup instances.

Parameters

*args (AtomGroup) – One or more AtomGroups.

Returns

structure

Return type

Structure

Raises
  • ValueError – Too few arguments or an AtomGroup is empty and

  • TypeError – Arguments are not AtomGroup instances.

Notes

This is take straight from MDAnalysis.universe. Refer to that module for more information.