BusView reference

BusView are returned by bracket-indicizing a Krang with a tuple containing the id of the desired buses. The main functionality of BusView is to enable the possibility of adding to a Krang circuit components tied to a particular set of buses. The operator used to carry out this operation is lshift, or <<, in the same fashion as direct addition to a Krang. Aside from this, BusViews can also return a list of the components already tied to their set of buses, a list of which is available in the property content.

Class reference

class krangpower._krangsuit._BusView(oek: krangpower._krangsuit.Krang, bustermtuples)
__getattr__(item)

Calculates a quantity from the submodule busquery on the BusView.

__init__(oek: krangpower._krangsuit.Krang, bustermtuples)

Initialize self. See help(type(self)) for accurate signature.

__lshift__(other)

Adds a component to the BusView, binding the component added to the buses referenced by the BusView.

__repr__()

Return repr(self).

__str__()

Return str(self).

content

A list containing the PackedOpendssElements bound to the BusView’s buses.