You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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, the object_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 the configuration 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 example
Expected behavior
I would expect both sets of code to run correctly, perhaps handling missing attributes (like object_parameters or objects) if not supplied to the configuration parameter in Collection().
Desktop (please complete the following information):
OS: macOS 14.6.1
Python 3.10.14
Version 0.2.3 (poetry installed)
The text was updated successfully, but these errors were encountered:
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.
voetberg
added a commit
to voetberg/DeepBench
that referenced
this issue
Sep 24, 2024
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):
The text was updated successfully, but these errors were encountered: