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

fix typos visualize + package for PyPI

parent 4277083b
......@@ -2,7 +2,7 @@ from setuptools import setup
setup(
name='animalai',
version='0.4.0',
version='0.4.2',
description='Animal AI competition interface',
url='https://github.com/beyretb/AnimalAI-Olympics',
author='Benjamin Beyret',
......@@ -15,7 +15,7 @@ setup(
'Programming Language :: Python :: 3.6'
],
packages=['animalai.envs', 'animalai.communicator_objects'], # Required
packages=['animalai.envs', 'animalai.envs.gym', 'animalai.communicator_objects'], # Required
zip_safe=False,
install_requires=[
......
......@@ -2,7 +2,7 @@ from setuptools import setup
setup(
name='animalai_train',
version='0.4.0',
version='0.4.2',
description='Animal AI competition training library',
url='https://github.com/beyretb/AnimalAI-Olympics',
author='Benjamin Beyret',
......@@ -15,19 +15,22 @@ setup(
'Programming Language :: Python :: 3.6'
],
packages=['animalai_train.trainers', 'animalai_train.trainers.bc', 'animalai_train.trainers.ppo'], # Required
packages=['animalai_train.trainers', 'animalai_train.trainers.bc', 'animalai_train.trainers.ppo',
'animalai_train.dopamine'], # Required
zip_safe=False,
install_requires=[
'animalai>=0.4.0',
'tensorflow>=1.7,<1.8',
'animalai>=0.4.2',
'dopamine-rl',
'tensorflow==1.12',
'matplotlib',
'Pillow>=4.2.1,<=5.4.1',
'numpy>=1.13.3,<=1.14.5',
'protobuf>=3.6,<3.7',
'grpcio>=1.11.0,<1.12.0',
'pyyaml>=5.1',
'atari-py',
'jsonpickle>=1.2',
'pypiwin32==223;platform_system=="Windows"'],
python_requires=">=3.5,<3.8",
)
\ No newline at end of file
)
from animalai.envs import UnityEnvironment
from animalai.envs.environment import UnityEnvironment
from animalai.envs.arena_config import ArenaConfig
import random
import numpy as np
from matplotlib import pyplot as plt
from matplotlib import animation
env_path = 'env/AnimalAI'
env_path = '../env/AnimalAI'
worker_id = random.randint(1, 100)
seed = 10
......@@ -34,7 +34,7 @@ env = UnityEnvironment(
play=False
)
arena_config_in = ArenaConfig('examples/configs/lightsOff.yaml')
arena_config_in = ArenaConfig('configs/lightsOff.yaml')
env.reset(arenas_configurations=arena_config_in)
fig, axes = plt.subplots(2, 2)
imshows = []
......
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