Skip to content

module myna.core.metadata.data_material

Define loading of the feedstock material name from databases


class Material

BuildMetadata subclass for the feedstock material name (str value, uppercase with no spaces)

Implemented datatypes: - PeregrineDB

method Material.__init__

__init__(datatype)

method Material.material_name_format

material_name_format(material)

Converts an input material string to consistent format

Args:

  • material: (str) material name

method Material.material_name_synonym

material_name_synonym(material)

Checks if the material name is a known synonym of Myna material names. Myna material names correspond to the files in the myna.mist_material_data file names.

Args:

  • material: (str) material name

Returns: (str) if the given material is a synonym, then returns the Myna material name, otherwise returns the Myna-formatted input string


method Material.value_from_database

value_from_database()

Returns the material name from the associated file

Returns: (str) Myna-formatted material name


This file was automatically generated via lazydocs.