Types#

class colomoto.types.Hypercube[source]#

Bases: dict

as_dataframe()[source]#
count()[source]#

Returns number of states represented by this object

extend(ts)[source]#
property is_single_state#
match_partial_state(ps)[source]#
match_state(ps)#
project(keys)[source]#
simplify()[source]#

Returns a State object if there is no free component in this hypercube, self otherwise.

class colomoto.types.HypercubeCollection(iterable=(), /)[source]#

Bases: list

as_dataframe()[source]#
classmethod cast(states)[source]#
count()[source]#

Returns number of states represented by this object

extend(ts)[source]#

Extend list by appending elements from the iterable.

property is_single_state#
match_partial_state(ps)[source]#
match_state(ps)#
project(keys)[source]#
simplify()[source]#

Warning: supports only Boolean states

class colomoto.types.PartialState[source]#

Bases: dict

as_dataframe()[source]#
match_partial_state(s)#
match_state(s)[source]#
project(keys)[source]#
class colomoto.types.State[source]#

Bases: PartialState

count()[source]#

Returns number of states represented by this object (1)

simplify()[source]#
class colomoto.types.TrapSpaceAttractor[source]#

Bases: Hypercube

class colomoto.types.TrapSpacesAttractor(iterable=(), /)[source]#

Bases: HypercubeCollection

colomoto.types.multivalue_merge(a, b)[source]#