Skip to content

Commit

Permalink
Fix GitHub Actions errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
hallvardnmbu committed Mar 8, 2024
1 parent d321a5b commit 98b1174
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: |
python_files=$(git ls-files '*.py')
if [[ -n "$python_files" ]]; then
echo "$python_files" | xargs pylint --disable=E0401 --disable=R0801 --disable=E0611 --disable=W0106 --disable=R0903 --disable=R0914 > pylint.out &
echo "$python_files" | xargs pylint --disable=E0401 --disable=R0801 --disable=E0611 --disable=W0106 --disable=R0903 --disable=R0914 --disable=C0103 > pylint.out &
flake8 --max-line-length=100 --max-complexity=10 $python_files > flake8.out &
wait
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def gif(environment, agent, path="./live-preview.gif", duration=25):
while not (terminated or truncated):
action = agent(state).argmax().item()

state, reward, terminated, truncated, _ = environment.step(action)
state, _, terminated, truncated, _ = environment.step(action)
state = torch.tensor(state, dtype=torch.float32)

images.append(environment.render())
Expand Down
2 changes: 1 addition & 1 deletion reinforcement-learning/tetris/utilities/visualisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def gif(environment, agent, path="./live-preview.gif", skip=4, duration=25):
images = []
done = False
while not done:
_, new_states, _, done = agent.observe(environment, states, skip)
_, states, _, done = agent.observe(environment, states, skip)

images.append(environment.render())
_ = imageio.mimsave(path, images, duration=duration)

0 comments on commit 98b1174

Please sign in to comment.