metallurgy.alloy.Alloy.Composition.__setitem__(element: str, percentage: float, respond_to_change=True)[source]

Set the percentage value of an element in the composition. Remove elements from the composition if below minimum threshold.


Last update: Jun 08, 2023