is_outwards (method)

is_outwards(self)[source]

Return if the magnet is outwards (on an external lamination) or inwards (on an internal lamination)

Parameters

self (Magnet) – A Magnet object

Returns

is_outwards – Direction of the magnet

Return type

bool

Raises

ParentMissingError – Error: The magnet is not inside a Slot