performTransmutation(self,
struct,
index,
item)
|
|
Perform a transmutation on a copy of struct at index. It is very
important that this happen on a copy of struct, not struct itself.
- Parameters:
struct (schrodinger.structure.Structure) - The structure to transmute a copy of
index (int) - An index that tells what atom to transmute
item (tuple) - An (element, color) tuple, where element is the atomic symbol of
the element to mutate to, and color is the new color for that
atom in a form accepted by the _StructAtom.color property
- Returns: schrodinger.structure.Structure
- A COPY of struct with atom index transmuted
- Overrides:
Alchemist.performTransmutation
|