desc.objectives.CurrentDensity.eq

CurrentDensity.eq(other)

Compare equivalence between DESC objects.

Two objects are considered equivalent if they will be saved and loaded with the same data, (ie, they have the same data “where it counts”, specifically, they have the same _io_attrs_)

Parameters:

other – object to compare to

Returns:

eq (bool) – whether this and other are equivalent