State Class¶
-
class sgio.model.State(name=
'', data={}, label=[], location='')¶ Bases:
objectA class to represent a state with associated data, labels, and location.
- data¶
The data associated with the state. It can be a list for point data or a dictionary for field data.
For point data:
data = [ value_for_label_1, value_for_label_2, ... ]For field data:
data = { 1: [], # Point data for note/element 1 2: [], # Point data for note/element 2 ... }- Type:¶
list or dict