ogstools.materiallib.core.material module#
- class ogstools.materiallib.core.material.Material[source]#
Bases:
Mapping[str,MaterialProperty]Represents a single material.
Can be constructed directly from YAML raw data.
Provides access to all properties.
Supports filtering by process schemas or property names.
- classmethod from_file(file_path)[source]#
Create a Material from a YAML file or return None if invalid.
- filter_process(process_schema)[source]#
Return a new Material containing only properties required by a given process schema.
- Return type: