-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too much console output during env creation #43
Comments
I totally agree with you. Those logs are very anoying.
They are all from pybullet. However, pybullet devs provide no way to set the verbosity, see bulletphysics/bullet3#3302. |
I see, but I think at least all the empty arguments from the argument list can be removed: The arguments are created here: panda-gym/panda_gym/pybullet.py Lines 28 to 32 in 09ecfb6
But due to line breaks and indentation,
Every space seems to trigger the creation of a new argument. Something like this gets rid of the extra whitespace and therefore significantly shortens the argument list:
|
Thanks for spotting this! I would prefer an F-string. I would be happy to receive a PR for this. |
Describe the bug
Currently, when creating an environment, a whole bunch of stuff is printed to the console:
console output
I couldn't find a way to block this output from outside, since it doesn't seem to use the Python stdout. Otherwise
with contextlib.redirect_stdout(os.devnull):
should work. I also noticed that in IPython only the argvs are output but I have no idea how to achieve this effect via a .py script.This output seems to partially be PyBullet's fault, the argvs are initialized via panda-gym, though. All empty argvs could be removed here.
To Reproduce
Provide a minimal code :
System
python --version
): 3.8.10pip list | grep panda-gym
): 3.0.0The text was updated successfully, but these errors were encountered: