Skip to content

Commit

Permalink
[Visualization] Remove file name assertion (#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
sotetsuk authored Oct 8, 2024
1 parent c5dd751 commit 7fd2455
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pgx/_src/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,6 @@ def save_svg(
color_theme: Optional[Literal["light", "dark"]] = None,
scale: Optional[float] = None,
) -> None:
assert str(filename).endswith(".svg")
if state.env_id.startswith("minatar"):
state.save_svg(filename=filename)
else:
Expand All @@ -674,7 +673,6 @@ def save_svg_animation(
frame_duration_seconds: Optional[float] = None,
) -> None:
assert not states[0].env_id.startswith("minatar"), "MinAtar does not support svg animation."
assert str(filename).endswith(".svg")
v = Visualizer(color_theme=color_theme, scale=scale)

if frame_duration_seconds is None:
Expand Down

0 comments on commit 7fd2455

Please sign in to comment.