class documentation
class StateDescription(etas.Serializable): (source)
Constructor: StateDescription(color_scheme, config, dataset, field_visibility_stage, ...)
Class that describes the shared state between the FiftyOne App and
a corresponding fiftyone.core.session.Session
.
Parameters | |
color | a fiftyone.core.odm.dataset.ColorScheme |
config | an optional fiftyone.core.config.AppConfig |
dataset | the current fiftyone.core.dataset.Dataset |
field | a field visibility stage |
group | a fiftyone.core.groups.Group.id |
group | a fiftyone.core.groups.Group.name |
sample | a fiftyone.core.sample.Sample.id |
selected | the list of currently selected samples |
selected | the list of currently selected labels |
spaces | a fiftyone.core.odm.workspace.Space |
view | the current fiftyone.core.view.DatasetView |
view | the name of the view if the current view is a saved view |
Class Method | from |
Constructs a StateDescription from a JSON dictionary. |
Method | __init__ |
Undocumented |
Method | attributes |
Undocumented |
Method | serialize |
Undocumented |
Instance Variable | color |
Undocumented |
Instance Variable | config |
Undocumented |
Instance Variable | dataset |
Undocumented |
Instance Variable | field |
Undocumented |
Instance Variable | group |
Undocumented |
Instance Variable | group |
Undocumented |
Instance Variable | sample |
Undocumented |
Instance Variable | selected |
Undocumented |
Instance Variable | selected |
Undocumented |
Instance Variable | spaces |
Undocumented |
Instance Variable | view |
Undocumented |
Constructs a StateDescription
from a JSON dictionary.
Parameters | |
d | a JSON dictionary |
Returns | |
StateDescription |