materials_compendium.utils.ElementInfo.get_weight_fraction

ElementInfo.get_weight_fraction()[source]

Get the weight fraction associated with the element.

Returns:

The weight fraction.

Return type:

float

Example

print(element_info.get_weight_fraction()) # Output: 0.012