as_substrate

pmrf.materials.as_substrate(value) Substrate

Coerce a value into a Substrate.

Accepts an existing Substrate or a mapping of its fields.

Parameters:

value (Any) – The value to coerce.

Returns:

The resulting substrate.

Return type:

Substrate