metallurgy.calculate(alloy: Alloy | str | dict, property_name: str | list[str] | None = None, uncertainty: bool = False) float | None | list[float | None][source]

Returns the a particular property calculated for an alloy, using other calculation functions provided by metallurgy. The property_name must match a function name in a metallurgy module, or be suffixed with _linearmix or _deviation to denote linear mixture or deviation of an elemental property.

Parameters:
alloy: Alloy | str | dict

The alloy for which to calculate a property.

property_name: str | list[str] | None = None

The property to calculate for the alloy.

uncertainty: bool = False

If using a cerebral model, activate dropout layers during inference and gather uncertainty information.


Last update: Jun 08, 2023