-
Notifications
You must be signed in to change notification settings - Fork 192
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
Improvements on rendering tests #1185
Conversation
smarts/core/tests/test_renderers.py
Outdated
from smarts.core.vehicle import RendererException | ||
|
||
|
||
def _smarts_with_agent(request, agent) -> SMARTS: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see where the request
parameter gets used here (or anywhere else below).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It gets added through the command line from the local conftest.py
.
85b2f79
to
5acafbe
Compare
5e16046
to
45ed586
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor comments you can address when you want, but should be good to merge whenever.
class _ShowBaseInstance(ShowBase): | ||
""" Wraps a singleton instance of ShowBase from Panda3D. """ | ||
|
||
_debug_mode: DEBUG_MODE = DEBUG_MODE.ERROR | ||
_rendering_backend: str = "p3headlessgl" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a comment here saying what the alternative possible values are?
Also, if this is meant to be changed by other code, I might remove the _
prefix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was not sure how to properly expose this back-end since it is panda3d
specific.
Along debugging issues with rendering I found that the tests were not catching issues with rendering. I have updated the rendering test and added some configuration and documentation.
This will allow rendering without need for X11.