kittycad.models.unit_frequency
Classes
|
The valid types of frequency units. |
- class kittycad.models.unit_frequency.UnitFrequency(value)[source][source]
The valid types of frequency units.
- __dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_frequency', '__doc__': 'The valid types of frequency units.', '__str__': <function UnitFrequency.__str__>, '__dict__': <attribute '__dict__' of 'UnitFrequency' objects>, '__weakref__': <attribute '__weakref__' of 'UnitFrequency' objects>, '_member_names_': ['GIGAHERTZ', 'HERTZ', 'KILOHERTZ', 'MEGAHERTZ', 'MICROHERTZ', 'MILLIHERTZ', 'NANOHERTZ', 'TERAHERTZ'], '_member_map_': {'GIGAHERTZ': <UnitFrequency.GIGAHERTZ: 'gigahertz'>, 'HERTZ': <UnitFrequency.HERTZ: 'hertz'>, 'KILOHERTZ': <UnitFrequency.KILOHERTZ: 'kilohertz'>, 'MEGAHERTZ': <UnitFrequency.MEGAHERTZ: 'megahertz'>, 'MICROHERTZ': <UnitFrequency.MICROHERTZ: 'microhertz'>, 'MILLIHERTZ': <UnitFrequency.MILLIHERTZ: 'millihertz'>, 'NANOHERTZ': <UnitFrequency.NANOHERTZ: 'nanohertz'>, 'TERAHERTZ': <UnitFrequency.TERAHERTZ: 'terahertz'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'gigahertz': <UnitFrequency.GIGAHERTZ: 'gigahertz'>, 'hertz': <UnitFrequency.HERTZ: 'hertz'>, 'kilohertz': <UnitFrequency.KILOHERTZ: 'kilohertz'>, 'megahertz': <UnitFrequency.MEGAHERTZ: 'megahertz'>, 'microhertz': <UnitFrequency.MICROHERTZ: 'microhertz'>, 'millihertz': <UnitFrequency.MILLIHERTZ: 'millihertz'>, 'nanohertz': <UnitFrequency.NANOHERTZ: 'nanohertz'>, 'terahertz': <UnitFrequency.TERAHERTZ: 'terahertz'>}, 'GIGAHERTZ': <UnitFrequency.GIGAHERTZ: 'gigahertz'>, 'HERTZ': <UnitFrequency.HERTZ: 'hertz'>, 'KILOHERTZ': <UnitFrequency.KILOHERTZ: 'kilohertz'>, 'MEGAHERTZ': <UnitFrequency.MEGAHERTZ: 'megahertz'>, 'MICROHERTZ': <UnitFrequency.MICROHERTZ: 'microhertz'>, 'MILLIHERTZ': <UnitFrequency.MILLIHERTZ: 'millihertz'>, 'NANOHERTZ': <UnitFrequency.NANOHERTZ: 'nanohertz'>, 'TERAHERTZ': <UnitFrequency.TERAHERTZ: 'terahertz'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
- _generate_next_value_(start, count, last_values)[source]
Generate the next value when not given.
name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None
- _member_map_ = {'GIGAHERTZ': UnitFrequency.GIGAHERTZ, 'HERTZ': UnitFrequency.HERTZ, 'KILOHERTZ': UnitFrequency.KILOHERTZ, 'MEGAHERTZ': UnitFrequency.MEGAHERTZ, 'MICROHERTZ': UnitFrequency.MICROHERTZ, 'MILLIHERTZ': UnitFrequency.MILLIHERTZ, 'NANOHERTZ': UnitFrequency.NANOHERTZ, 'TERAHERTZ': UnitFrequency.TERAHERTZ}[source]
- _member_names_ = ['GIGAHERTZ', 'HERTZ', 'KILOHERTZ', 'MEGAHERTZ', 'MICROHERTZ', 'MILLIHERTZ', 'NANOHERTZ', 'TERAHERTZ'][source]
- _value2member_map_ = {'gigahertz': UnitFrequency.GIGAHERTZ, 'hertz': UnitFrequency.HERTZ, 'kilohertz': UnitFrequency.KILOHERTZ, 'megahertz': UnitFrequency.MEGAHERTZ, 'microhertz': UnitFrequency.MICROHERTZ, 'millihertz': UnitFrequency.MILLIHERTZ, 'nanohertz': UnitFrequency.NANOHERTZ, 'terahertz': UnitFrequency.TERAHERTZ}[source]