Skip to content

Commit

Permalink
Import bugfixes in documentation scripts (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottower authored Aug 7, 2023
1 parent 83d243c commit 362fa13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions docs/_scripts/generate_gifs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import subprocess

from pettingzoo.test.all_modules import all_environments
from test.all_modules import all_environments

# procs = []
for name, module in all_environments.items():
Expand Down
3 changes: 1 addition & 2 deletions docs/_scripts/graph_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
import os
import subprocess
from collections import defaultdict

from pettingzoo.test.all_modules import all_environments
from test.all_modules import all_environments


def generate_cycle_words(agents, is_classic):
Expand Down
4 changes: 1 addition & 3 deletions docs/_scripts/text_capture.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import json
import random
from test.all_modules import all_environments

import numpy as np

from pettingzoo.test.all_modules import all_environments


def shrink_lines(data, max_height, max_width):
lines = data.split("\r\n")[:max_height]
Expand All @@ -17,7 +16,6 @@ def shrink_lines(data, max_height, max_width):
if "classic/" not in name:
continue
env = module.env()
# env = gin_rummy_v0.env()
env.reset()

all_text = [env.render()]
Expand Down

0 comments on commit 362fa13

Please sign in to comment.