pyphi.models.cmp.OrderableByPhi#

class pyphi.models.cmp.OrderableByPhi[source]#

Bases: Orderable

Mixin for implementing rich object comparisons on phi-objects that are ordered solely by their phi values.

Inherits from Orderable.

order_by()[source]#

Return a list of values to compare for ordering.

The first value in the list has the greatest priority; if the first objects are equal the second object is compared, etc.

Return type:

Any