Skip to content
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

Merged
merged 27 commits into from
Sep 6, 2022
Merged

New eval and seed #27

merged 27 commits into from
Sep 6, 2022

Conversation

discordianfish
Copy link
Member

No description provided.

@@ -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 ...")
Copy link
Member Author

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)
Copy link
Member Author

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?

@alexpalms alexpalms merged commit 17dddf6 into main Sep 6, 2022
@alexpalms alexpalms deleted the newEvalAndSeed branch September 6, 2022 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants