Source code for openmc.macroscopic

from six import string_types

from openmc.checkvalue import check_type


[docs]class Macroscopic(str): """A Macroscopic object that can be used in a material. Parameters ---------- name : str Name of the macroscopic data, e.g. UO2 Attributes ---------- name : str Name of the nuclide, e.g. UO2 """ def __new__(cls, name): check_type('name', name, string_types) return super(Macroscopic, cls).__new__(cls, name) @property def name(self): return self