Open jwuphysics opened 2 weeks ago
Ah, this is actually a really silly mistake on my end. The return object of calling the Collection isn't the Collection instance, it's null. The objects and object_params are attributes of the Collection itself. These will be corrected no problem.
Describe the bug The first pendulum example on the README.md throws errors. The
configuration
dict construction is missing a closing curly brace, and beyond that, theobject_parameters
key is not initialized or does not fall back to a default value.The second noisy shapes example is not correctly formatted either: there is an extra set of square braces, which causes a SyntaxError once it reaches the
:
in"rectangle": {
. Removing square braces enables theconfiguration
to run correctly, but then the remaining code still does not run.To Reproduce
I use
ipython
to run the following (corrected) version of the exampleThis results in the error:
Similarly, for the second example, if I run (the corrected):
I now get the error:
Expected behavior I would expect both sets of code to run correctly, perhaps handling missing attributes (like
object_parameters
orobjects
) if not supplied to theconfiguration
parameter inCollection()
.Desktop (please complete the following information):