mango.fields.compounds module¶
-
class
mango.fields.compounds.
Float2Field
(*args, **kwargs)¶ Bases:
mango.fields.generic.FloatField
The Float2Field can be used to set and retrieve double compound values. If the provided value is not a list containing float or integer values a TypeError will be raised. The fixed length of the compound is 2.
-
compound
= 'UV'¶
-
default_value
= (0.0, 0.0)¶
-
validate_child_is_int_or_float
(value)¶ Raises: TypeError – When the value is not a list.
-
validate_length
(value)¶ Raises: ValueError – When the value is not a list.
-
-
class
mango.fields.compounds.
Float3Field
(*args, **kwargs)¶ Bases:
mango.fields.generic.FloatField
The Float3Field can be used to set and retrieve double compound values. If the provided value is not a list containing float or integer values a TypeError will be raised. The fixed length of the multi is 3.
-
compound
= 'XYZ'¶
-
default_value
= (0.0, 0.0, 0.0)¶
-
validate_child_is_int_or_float
(value)¶ Raises: TypeError – When the value is not a list.
-
validate_length
(value)¶ Raises: ValueError – When the value is not a list.
-
-
class
mango.fields.compounds.
Degree3Field
(*args, **kwargs)¶ Bases:
mango.fields.generic.DegreeField
The Degree3Field can be used to set and retrieve angle compound values. If the provided value is not a list containing float or integer values a TypeError will be raised. The fixed length of the multi is 3.
-
compound
= 'XYZ'¶
-
default_value
= (0.0, 0.0, 0.0)¶
-
validate_child_is_int_or_float
(value)¶ Raises: TypeError – When the value is not a list.
-
validate_length
(value)¶ Raises: ValueError – When the value is not a list.
-
-
class
mango.fields.compounds.
Boolean3Field
(*args, **kwargs)¶ Bases:
mango.fields.generic.BooleanField
The Boolean3Field can be used to set and retrieve boolean compound values. If the provided value is not a list containing boolean values a TypeError will be raised. The fixed length of the multi is 3.
-
compound
= 'XYZ'¶
-
default_value
= (True, True, True)¶
-
validate_child_is_bool
(value)¶ Raises: TypeError – When the value is not a list.
-
validate_length
(value)¶ Raises: ValueError – When the value is not a list.
-