Value types

Value classes

These value classes inherit from value_base:

  • Float (float)
  • Int (int)
  • String (unicode—does not require translation)
  • Message (unicode—requires translation)

These value classes inherit from color_value_base:

These methods and attributes are present in each value class, where TYPE is the type held by the class, as listed above:

__init__ ([TYPE value, int qualifier])

If value is given, qualifier defaults to Q_NEUTRAL. If not, qualifier defaults to Q_UNK.

TYPE value

The value, if defined.

Value list classes

These value list classes inherit from value_base:

  • FloatList (float)
  • IntList (int)

These methods and attributes are present in each value list class, where TYPE is the type held by the class, as listed above:

__init__ ([list(TYPE) values, int qualifier])

If values are given, qualifier defaults to Q_NEUTRAL. If not, qualifier defaults to Q_UNK.

list(TYPE) values

A list of TYPE values, if defined.

class Event

A qualified value representing the time and location of an event.

Event ([int when, unicode where, int qualifier])

If when and where are given, qualifier defaults to Q_NEUTRAL. If not, qualifier defaults to Q_UNK.

int when

The year in which the event occurred, if defined.

unicode where

The place in which the event occurred, if defined.

class Series

A qualified value representing a chemical series. See the value class synopsis.

These read-only int attributes of class Series are the valid values of Series.value:

Series.NONMETALnonmetals
Series.NOBLE_GASnoble gases
Series.ALKALI_METALalkali metals
Series.ALKALINE_EARTH_METALalkaline earth metals
Series.SEMIMETALsemimetals
Series.HALOGENhalogens
Series.POST_TRANSITION_METALpost-transition metals
Series.TRANSITION_METALtransition metals
Series.LANTHANIDElanthanides
Series.ACTINIDEactinides

class Block

A qualified value representing a periodic table block. See the value class synopsis.

These read-only int attributes of class Block are the valid values of Block.value:

Block.Ss-block (sharp)
Block.Pp-block (principal)
Block.Dd-block (diffuse)
Block.Ff-block (fundamental)

class Phase

A qualified value representing a phase of matter. See the value class synopsis.

These read-only int attributes of class Phase are the valid values of Phase.value:

Phase.SOLIDsolid
Phase.LIQUIDliquid
Phase.GASgas

class LatticeType

A qualified value representing a Bravais lattice type. See the value class synopsis.

These read-only int attributes of class LatticeType are the valid values of LatticeType.value:

LatticeType.TRItriclinic
LatticeType.MONOmonoclinic
LatticeType.ORTHorthorhombic
LatticeType.TETtetragonal
LatticeType.RHOrhombohedral
LatticeType.HEXhexagonal
LatticeType.SCsimple cubic
LatticeType.BCCbody-centered cubic
LatticeType.FCCface-centered cubic