The error magnet.several#
user: the script can change it: the error says what happened in the experiment’s names, and what to write instead.
Where MIME gives it, with what its message says happened and what its action says to do ({…} is filled in from the experiment):
in
mime/build/_plan.py:what happened:
{…} has {…} magnets and declares no parts: a body's moment from several magnets is the part resolver's sum, over the parts the magnets arewhat to do:
declare the body's parts (Body(..., parts={...})), or keep one magnet
in
mime/build/_plan.py:what happened:
apparatus {…} has {…} magnets ({…}): an apparatus's moment is declared for its one magnet, {…}.magnetic_moment, and a value per part of an apparatus is not builtwhat to do:
keep one magnet in each apparatus: Apparatus(..., magnets={"<part>": PermanentMagnet(direction=...)})
Reading an error and reaching its full traceback: reading an error. Every code: the index.