Commit b6c90fbd authored by Benjamin Beyret's avatar Benjamin Beyret
Browse files

added version check

parent 8a23990d
......@@ -135,6 +135,9 @@ Intelligent Agents.](https://arxiv.org/abs/1809.02627) *arXiv preprint arXiv:180
## Version History
- v0.6
- remove `step_number` argument from `animalai.environment.step`
- v0.5 Package `animalai`, gym compatible, dopamine example, bug fixes
- Separate environment API and training API in Python
- Release both as `animalai` and `animalai-train` PyPI packages (for `pip` installs)
......
......@@ -49,7 +49,7 @@ class UnityEnvironment(object):
self.play = play
self.port = base_port + worker_id
self._buffer_size = 12000
self._version_ = "API-7"
self._version_ = "0.6"
self._loaded = False # If true, this means the environment was successfully loaded
self.proc1 = None # The process that is started. If None, no process was started
self.communicator = self.get_communicator(worker_id, base_port)
......@@ -74,9 +74,10 @@ class UnityEnvironment(object):
self._unity_version = aca_params.version
if self._unity_version != self._version_:
raise UnityEnvironmentException(
"The API number is not compatible between Unity and python. Python API : {0}, Unity API : "
"{1}.\nPlease go to https://github.com/Unity-Technologies/ml-agents to download the latest version "
"of ML-Agents.".format(self._version_, self._unity_version))
"There is a version mismatch between the Python API and Unity executable.\n"
"Python API : {0}, Unity executable : {1}.\n"
"Please go to https://github.com/beyretb/AnimalAI-Olympics to download the latest version "
.format(self._version_, self._unity_version))
self._n_agents = {}
self._global_done = None
self._academy_name = aca_params.name
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment