remove

dnois.mt.remove(name: str, ignore_if_absent: bool = False)

Remove a material from material library.

Warning

If no qualifier in name, all materials with the same name will be removed. Specify an empty qualifier if only the material with empty qualifier should be removed.

Parameters:
  • name (str) – Name of the material.

  • ignore_if_absent (bool) – If true, ignore material if it does not exist, or raise an error if false.

Raises:

MaterialNotFoundError – If the material does not exist and ignore_if_absent is False.