The error call.wrong-type#
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/experiment/_experiment.py:what happened:
add_{…} takes a {…}, not {…}what to do:
pass one: exp.add_{…}({…}(...))
in
mime/experiment/_experiment.py:what happened:
attach takes an Interaction, not {…}what to do:
pass an interaction and its bindings: exp.attach(Gravity(), body=ball, medium=water)
in
mime/experiment/_experiment.py:what happened:
{…}= takes a handle, a typed path or a name, not {…}what to do:
bind it to a thing: {…}= the handle add_body or add_medium returned, or its name
in
mime/experiment/_experiment.py:what happened:
permission takes a mime.terms.Permission, not {…}what to do:
pass one: exp.permission(Permission(grantor=..., grantee=..., files=(...), scope=Scope(...), date="YYYY-MM-DD", evidence=Evidence(...)))
in
mime/experiment/_experiment.py:what happened:
observe takes an Observation, not {…}what to do:
pass an observation: exp.observe(SwimSpeed(body, along=X))
in
mime/experiment/_experiment.py:what happened:
set_controller takes a Controller, not {…}what to do:
pass a registered controller: exp.set_controller(ArmTracking(...), reads=..., writes=..., mode=...)
in
mime/results/_result.py:what happened:
an observation's output is read by its name, not by {…} {…}what to do:
read it by name: result[{…}][{…}], or as an attribute; its outputs are {…}
in
mime/results/_result.py:what happened:
a run's result is read by an observation, not by {…} {…}what to do:
index it by the handle observe returned, result[swim], or by an observation's id: {…}
Reading an error and reaching its full traceback: reading an error. Every code: the index.