mbuild_polybuild.aa_monomers.methacrylate.Methacrylate.flatten¶
- Methacrylate.flatten(inplace=True)¶
Flatten the hierarchical structure of the Compound.
Modify the mBuild Compound to become a Compound where there is a single container (self) that contains all the particles.
Parameter¶
- inplacebool, optional, default=True
Option to perform the flatten operation inplace or return a copy
- returns:
self – return a flattened Compound if inplace is False.
- rtype:
mb.Compound or None