-
Notifications
You must be signed in to change notification settings - Fork 22
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
New eval and seed #27
Conversation
… gym obs viz, fixed error in wrapper
a80cdd9
to
73782ed
Compare
diambra/arena/engine/interface.py
Outdated
@@ -17,124 +17,173 @@ def __init__(self, env_address): | |||
self.channel = grpc.insecure_channel(env_address) | |||
self.stub = interface_pb2_grpc.EnvServerStub(self.channel) | |||
|
|||
# Wait for grpc server to be ready | |||
print("Trying to connect to DIAMBRA Engine server ...") |
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.
Can you use a proper logger for these things, eg https://docs.python.org/3/library/logging.html?
except grpc.FutureTimeoutError: | ||
print("... failed.") | ||
exceptionMessage = "DIAMBRA Arena failed to connect to the Engine Server." | ||
print(exceptionMessage) |
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.
No need to print all these things if we raise an exception that prints this error anyway, right?
No description provided.