Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
mkdir test-reports
pytest --cov=mlagents --cov-report xml --junitxml=test-reports/junit.xml -p no:warnings
python-codacy-coverage -r coverage.xml

- run:
name: Check Code Style for ml-agents and gym_unity using black
command: |
. venv/bin/activate
black --check ml-agents
black --check ml-agents-envs
black --check gym-unity
Expand Down
4 changes: 1 addition & 3 deletions gym-unity/gym_unity/envs/unity_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,7 @@ def _single_step(self, info):
visual_obs = info.visual_observations
if isinstance(visual_obs, list):
visual_obs = np.array(visual_obs)
self.visual_obs = self._preprocess_single(
visual_obs[0][0, :, :, :]
)
self.visual_obs = self._preprocess_single(visual_obs[0][0, :, :, :])
default_observation = self.visual_obs
else:
default_observation = info.vector_observations[0, :]
Expand Down