ListOfList (hwx.inspire.Attributes)#

class ListOfList(type, default=[], **kwds)#

Bases: List

Store list of lists of values in a single attribute.

For example:

obj.intLists = [[1,2],[3,4,5]]

Method Table#

Name

Description

castForSet (self, obj, value)

create (self, obj)

getValue (self, obj)

setValue (self, obj, value)

create(obj)#

bool(x) -> bool

Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.

castForSet(obj, value)#

Converts and validates the value of the attribute before setting.

Converts the value it to its internal type (and base units if applicable).

Parameters:
  • obj (GeneralObject) – Object this attribute belongs to.

  • value (Any) – Value of the attribute to set.

Returns:

Validated and converted value.

Return type:

value (Any)